Mail Archives: djgpp/2001/08/29/11:35:16
I'm not an assebly guy so check that what I say is correct.
Cappellini, Tony (Tony_Cappellini AT maxtor DOT com) wrote:
: Would someone help me with the correct asm syntax for DJGPP for the
: following Intel format instructions
: mov AX, OFFSET count
movw $count, %%ax
: lea AX, count
This one is hard I think. Perhaps
db ADDRESS_OR_OPERAND_SIZE_PREFIX
lea $count, eax
will do it. Not sure which size prefix you should use. Note that the
above sequence doesn't make much sense as your in 32-bit protected
mode. Just why would you want to lea a 16-bit register?
Right,
MartinS
- Raw text -