To: Mike Gore Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Q: Memory Access to DOS area running a go32 exec under windows ? Date: Thu, 06 Oct 94 16:16:43 +0200 From: eliz AT is DOT elta DOT co DOT il > #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