To: djgpp AT delorie DOT com Subject: Re: Inline asm References: From: Prashant TR Date: 06 Mar 2000 22:51:14 +0500 In-Reply-To: "Martin F. Johansen"'s message of "Mon, 6 Mar 2000 17:27:09 +0100" Message-ID: Lines: 22 X-Mailer: Gnus v5.7/Emacs 20.4 Reply-To: djgpp AT delorie DOT com "Martin F. Johansen" writes: > Does Inline asm work in djgpp? I tried: Yes, it does. Read on... > asm MOV AX,0013h > asm INT 10h > > asm{ > MOV AX,0003h > INT 10h > } Inline assembly in DJGPP is quite different from the normal C++ compilers. Read the FAQ which contains a section on inline assembly. And btw, you'd prefer not to call interrupts like that in protected mode. See the __dpmi_int function.