www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/07/09:02:21

Date: Thu, 7 Dec 1995 13:33:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Kenneth Albanowski <kjahds AT kjahds DOT com>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Calling real-mode interrupt

On Tue, 5 Dec 1995, Kenneth Albanowski wrote:

> Perhaps someone can help me with this. I need to call a real-mode interrupt
> from djgpp (I'll probably be using djgpp v2, if that matters.) I'll need to
> allocate and pass the address of a smallish DOS-memory buffer, and then read
> from it in protected mode. I was hoping someone had an example of code that
> does this, or pointers to some documentation for this. I'm trying to be lazy

Look in the library sources (djlsr200.zip), in any function which calls 
DOS or BIOS.  Good candidates are src/libc/dos/io/_write.c and 
src/libc/dos/dos/truename.c.  You should also read sections 18.1-18.6 in 
the DJGPP FAQ list (available as faq102.zip from any SimTel mirror, 
directory SimTel/vendors/djgpp/.

- Raw text -


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