Date: Thu, 10 Jul 1997 10:16:05 +0300 (IDT) From: Eli Zaretskii To: Alessandro Moure cc: djgpp AT delorie DOT com Subject: Re: Memory address. In-Reply-To: <33C3A110.97EF31F1@sercomtel.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 #include unsigned char first_byte = _farpeekb (_dos_ds, 0xd0000);