How to call DOS Interrupts within a C/C++ program using Inline Assembly ?
- by rockr90
Hi, everyone !
I need to call some DOS interrupts (Services) from a C/C++ program, I tried the following inline asm code:
(Read a character)
int main()
{
asm(
"movb $0x01, %ah;"
"int $0x21"
);
system("PAUSE");
}
But it did not work ! I would like to know what have i done wrong here ! Also if there is another way to call dos interrupts !
Thank You !