Orlando Llanes <ollanes@accesspro.net> wrote:
My problem is that when I type "asm( 'inb %al, %dx' );" the compiler says "386 instruction not recognized"
AAAHhrrrgg!!! :)) I posted in this mailing-list the my GPC ASM documentation yesterday. SOURCE and DEST operands in At&t syntax are ALWAYS swapped!!!!!!
I tried using an INLINE statement, that didn't work either,
Yes, it don't work, not as in BP, however.
I even tried "asm( '$EC' );" which is the machine code equivalent, still nothing, then I tried "asm( 'db $EC' );
The GPC equivalent of the BP Inline($EC); --->>>>> is ------>>>> Asm(" .byte 0xEC");
I understand that GPC was meant to be cross platform, but I need port access. I also know that I could link it externally, but I don't want to have to do that unless it's absolutely necessary :( Thanks in advance!
Get my ASM documentation at http://www.geocities.com/SiliconValley/Vista/6573/index.html if you haven't it yet. Otherwise, inportw and inportb procedure are in attachment...
See ya!
Ciao, PredatorZ. -- [<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<] | Codename: PrEdAtOr~Z; Sex: Male; Status: Free coder | * E-mail: predatorzeta@geocities.com * | URL: http://www.geocities.com/SiliconValley/Vista/6573 | [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]