Mail Archives: djgpp/1997/07/10/03:16:35
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 -