Mail Archives: djgpp/1996/01/31/02:31:11
On 30 Jan 1996, Casper Schougaard wrote:
> The problem is when I try to print the OEM string using the supplied far pointer. I am
> using the line;
> 
>       c = _farpeekb(_dos_ds, (ptr>>16)*16 + (unsigned short)ptr);
> 
What you do to `ptr' above doesn't change it a bit!  If you get a 
segment/offset pair from a real-mode software interrupt, then you should 
do this:
	c = _farpeekb(_dos_ds, (segment << 4) + offset);
If that doesn't help, please tell how did you get that `ptr' above.
- Raw text -