Hello I'm trying to use ASM in a little D program :
asm
{
mov AX,12h ;
int 10h ;
}
I've got this message : "end of instruction" from the two lines in the asm statement
I cannot fix the issue,
that's why I'me asking help from you.
thanks for your answer
I apologize for my english
Since asm statements are embedded in D, you have to use D number syntax. That is, 0xNUMBER instead of NUMBERh for hexadecimal numbers. So,
asm { mov AX, 0x12; int 0x10; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With