Mail Archives: djgpp/1995/11/19/05:06:11
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 -