delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/07/19:00:19

From: "Alexei A. Frounze" <see_below AT the_message_body DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Memory addresses
Date: Wed, 07 Jun 2000 18:40:03 +0400
Organization: None
Lines: 35
Message-ID: <393E5EC3.B1827203@the_message_body.com>
References: <8hl37s$b3v$1 AT barcode DOT tesco DOT net>
NNTP-Posting-Host: ppp103-140.dialup.mtu-net.ru
Mime-Version: 1.0
X-Trace: gavrilo.mtu.ru 960388811 50792 212.188.103.140 (7 Jun 2000 14:40:11 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 7 Jun 2000 14:40:11 GMT
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: ru,en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

If the DPMI host (DOS extender) you use supports this way of calling the
service interrupts for a function you wanna use, you're able to do this. If
not, allocate a  block of RAM in DOS memory (I don't remember which DPMI
function), then fill it in with data you wanna pass to the function,
simulate realmode interrupt (again some DPMI function).

Good Luck
Alexei A. Frounze
-----------------------------------------
E-mail:   alexfru [AT] chat [DOT] ru
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru

Graham Warren wrote:
> 
> Hi there,
>                I'm brand new to DJGPP programming and have a question. In a
> Turbo C program I have the following code to put the address of the 'info'
> structure across the registers es:di before and interrupt is called. My
> question is - in 32-bit protected mode how do I go about doing the same
> thing? The interrupt called is one of the VESA ones, does it want a real
> mode address or the protected mode address. How do I pass these to it? Is
> this the same for all interrupts where addresses are passed or recieved?
> 
> /* */
> sregs.es = FP_SEG (&info);  /* segment of data structure */
> regs.x.di = FP_OFF (&info);   /* offset of data structure */
> /* interrupt called */
> 
> One other thing, please could anyone recommend a tutorial or website where I
> can find information on, and about programming in 32-bit p. mode.
> 
> Thanks a bunch
> Graham.

- Raw text -


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