Mail Archives: djgpp/1996/12/17/19:58:10
On 16 Dec 1996 17:02:54 GMT "Patrick Smith" <patricks AT travsoft DOT com>
writes:
>The protected mode selector for any buffer in conventional (dos) memory
is
>the global variable, _dos_ds. In order to use the transfer buffer
(__tb),
>simply use _dos_ds for the selector and the value of (__tb & 0x000FFFFF)
as
>the offset. Note: The reason you mask off the upper 12-bits is because
>real-mode dos only uses 20-bit adresses...
Well, between all these replies I've gotten, I finally understand
what I should be doing, and what I was doing wrong.
There may be no difference (but I believe there is), but if you
say (__tb & 0x000fffff), and Shawn H says (__tb &0xfffff), wouldn't one
be incorrect?
aaron
- Raw text -