delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/10/03:16:35

Date: Thu, 10 Jul 1997 10:16:05 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alessandro Moure <moure AT sercomtel DOT com DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: Memory address.
In-Reply-To: <33C3A110.97EF31F1@sercomtel.com.br>
Message-ID: <Pine.SUN.3.91.970710101436.19359A-100000@is>
MIME-Version: 1.0

On Wed, 9 Jul 1997, Alessandro Moure wrote:

>         When I call the int86 function, the TSR copy the data from the
> board's buffer to the address D000:0000, D000:0001, etc. When I was
> using Borland C (16 bits), no problem. But now with djgpp and protected
> memory mode I just don't know if it is possible to get the data, or even
> if the TSR is transfering the data to somewhere in the memory...
>         What should I do?

You should read the DJGPP FAQ list (v2/faq210b.zip from the same place
you get DJGPP).  This question is discussed in section 18.4 there.
For example, here's one way to peek at the byte at D000:0000 (please
do NOT use this code verbatim without reading that section in the FAQ,
because it describes other techniques which might be more suitable to
your application):

	#include <go32.h>
	#include <sys/farptr.h>

	unsigned char first_byte = _farpeekb (_dos_ds, 0xd0000);

- Raw text -


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