Hi,
I am trying to use assembly within c code.

#include
1 unsigned long
2 foo()
3 {
4 int i = 5;
5 /* Copy i to r3 (r3 = i) like asm ("ld 3, i") */
6 asm ("br");
7 return 3;
8
9 }
10
11 int main()
12 {
13 unsigned long i;
14 i = foo();
15 printf ("%lx\n",i);
16 return 0;
17 }


What will be the correct syntax at line no : 5?
I am using xlc7 on 5.3

thanks