www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/19/05:06:11

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3325
Path: news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!agis!simtel!torn!uunet.ca!news.uunet.ca!ra.isisnet.com!news
From: Bill Davidson <bdavidson AT ra DOT isisnet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Assembler
Date: 14 Nov 1995 07:12:17 GMT
Organization: isis, Incorporated
Lines: 25
References: <DHsCGJ DOT J0o AT jade DOT mv DOT net>
Nntp-Posting-Host: hfx-p24.isisnet.com
To: jwyackel AT acs DOT ucalgary DOT ca
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Jeremy William Yackel <jwyackel AT acs DOT ucalgary DOT ca> wrote:
>Is there a assembler command to access a dos interrupt.  Mainly interrupt
>0x10 (Video functions)?

What do you mean by "access" an interrupt? (Incindentally, int 0x10 is a BIOS
interrupt, not a DOS interrupt.)  If you mean "issue" an interrupt, the command
is just INT 10H (Intel format, I guess the AT&T format would be int $0x10).
If you want to intercept an interrupt, you use int 21h function 25h, set
interrupt vector (but first use function 35h get interrupt vector to save the
old one).

>Is there a C function that access interrupts?  (I haven't looked in the 
>docs for those yet).

Yes, lots!  Check the libc docs.

Have fun!
Bill.

-- 
-----------------------------------------------
|          Bill Davidson                      |
|          bdavidson AT ra DOT isisnet DOT com           |
-----------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019