delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/08/19:16:54

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Calling Software interrupts
Date: Tue, 08 Sep 1998 19:41:31 -0300
Organization: NBTel Internet
Lines: 20
Message-ID: <35F5B29B.168CF647@unb.ca>
References: <905271833 DOT 2795 DOT 0 DOT nnrp-05 DOT d4e48d0d AT news DOT demon DOT co DOT uk>
NNTP-Posting-Host: fctnts09c02.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nick Bull wrote:
> I think this is where the problem is.  I've removed the "char far *buf" from
> the arguments and the "far" from the structure, but I think I'm running into
> problems here.  The function should call an interrupt in the MSCDEX driver
> that fills buf with data.  All of my other interrupt calls are working OK,
> but they don't fill any memory with information.  Can anyone help ?  What am
> I doing wrong ?
> 
> buf is allocated using a malloc, and I know my calling procedure for the
> interrupt works (copies the command block to dos memory and calls using
> __dpmi_interrupt).  Help !
	You need to use DOS memory, not malloc to get your buffer.  You need to then
pass the Seg:Offset to the driver.  Not the 32-bit version.
-- 
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca


- Raw text -


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