Ask for help fixing a build in program D

Hello, I am trying to use ASM in a small D program:

asm { mov AX,12h ; int 10h ; } 

I have this message: "end of instruction" of two lines in asm instruction

I canโ€™t fix the problem,

why am I asking you for help.

thanks for your reply

Sorry for my english

+8
x86 inline-assembly d
source share
1 answer

Since asm statements are built into D, you need to use the D number syntax. That is, 0xNUMBER instead of NUMBERh for hexadecimal numbers. So,

 asm { mov AX, 0x12; int 0x10; } 
+8
source share

All Articles