| delorie.com/archives/browse.cgi | search |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: Inline asm |
| References: | <ZYQw4.7893$6b1 DOT 126890 AT news1 DOT online DOT no> |
| From: | Prashant TR <tr AT midpec DOT com> |
| 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: | <lq3dq4q965.fsf@envy.midpec.com> |
| Lines: | 22 |
| X-Mailer: | Gnus v5.7/Emacs 20.4 |
| Reply-To: | djgpp AT delorie DOT com |
"Martin F. Johansen" <mfag AT online DOT no> 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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |