Mail Archives: djgpp/1994/10/06/13:07:53
> #define peek16(a) _farpeekw(0,a)
> #define poke16(a,b) _farpokew(0,a,b)
Now it's pretty much clear why this doesn't work. You should use
_go32_conventional_mem_selector() instead of 0 as the first arg
of farpeekX and farpokeX. (I hope I get that long name right, but
look in the Info manual of libc.a (type ``info libc.a'' and look
under _go32_XXXX stuff)). The first arg to those routines is a
selector, not segment, and DOS memory is *not* pointed to by
zero selector!
Eli Zaretskii
- Raw text -