www.delorie.com/archives/browse.cgi | search |
Sender: | nate AT cartsys DOT com |
Message-ID: | <373C95F3.398934D9@cartsys.com> |
Date: | Fri, 14 May 1999 14:30:27 -0700 |
From: | Nate Eldredge <nate AT cartsys DOT com> |
X-Mailer: | Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) |
MIME-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
Subject: | Re: interupts |
References: | <373B6290 DOT 45BB AT bellsouth DOT net> |
Reply-To: | djgpp AT delorie DOT com |
seth wrote: > > How do you do interupts in DJGPP.... > I tried but it gave me an error.. > > how would this look if it was for DJGPP > > mov ah, 00h > mov al, 13h > int 10h #include <dpmi.h> ... __dpmi_regs r; r.h.ah = 0; r.h.al = 0x13; __dpmi_int(0x10, &r); If you feel a pressing need to use assembly: asm("movb $0, %ah; movb $0x13, %al; int 0x10" : : "ax"); -- Nate Eldredge nate AT cartsys DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |