P
par_c
Hi all,
I have a source code in c that uses some assembly for the motorola
m68360 chip.
Here is the part I dont understand:
#define OR_REG32(reg,val) __asm__("or.l %0,%1" : : "n" (val), "o"
(reg))
1) I dont understand the semicolon with a space between them syntax,
it look likes scope resolution but it isn't (I think). I also dont
understand the %0 and %1 syntax, haven't seen them before.
2) Anyone know how to implement this in the code without using the
#define? Does anyone have experience with this type (using asm mixed
with c code) of programming that could guide me?
Thanx in advance.
I have a source code in c that uses some assembly for the motorola
m68360 chip.
Here is the part I dont understand:
#define OR_REG32(reg,val) __asm__("or.l %0,%1" : : "n" (val), "o"
(reg))
1) I dont understand the semicolon with a space between them syntax,
it look likes scope resolution but it isn't (I think). I also dont
understand the %0 and %1 syntax, haven't seen them before.
2) Anyone know how to implement this in the code without using the
#define? Does anyone have experience with this type (using asm mixed
with c code) of programming that could guide me?
Thanx in advance.