Hi
I'm trying to use the "in" instruction (I'm remapping PICs) like this:
asm ("inb %1, %0" : "=a" (temp1) : "d" (PIC1_DATA));
but I'm getting:
Error: suffix or operands invalid for `in'
What am I doing wrong this time??
Thanks
srg
Another Simple AT&T Assembly problem
Re:Another Simple AT&T Assembly problem
I'm guessing gcc is resolving this to inb edx, eax, which is wrong. (You could confirm this by compiling to an assembly listing.)
Try this:
Try this:
Code: Select all
asm ("inb %dx, %al" : "=a" (temp1) : "d" (PIC1_DATA));