www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/09/10:30:36

From: "Nick Bull" <nick AT imat DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Calling Software interrupts
Date: Wed, 9 Sep 1998 15:18:03 +0100
Message-ID: <905350731.8524.0.nnrp-06.d4e48d0d@news.demon.co.uk>
References: <905271833 DOT 2795 DOT 0 DOT nnrp-05 DOT d4e48d0d AT news DOT demon DOT co DOT uk> <35F5B29B DOT 168CF647 AT unb DOT ca>
NNTP-Posting-Host: imat.demon.co.uk
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've allocated the memory with __dpmi_allocate_dos_memory.  I've now got a
pointer to the segment (I assume that's what is returned).  So now I'm
trying to put this into an element of the structure that is expecting a char
far *.  I'm really confused about this.

I've found loads of info about passing a segment:offset in registers, but
not putting it into the structure to call the interrupt.

> 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