Date: Thu, 6 Oct 94 11:41:36 -0400 From: dj AT stealth DOT ctron DOT com (DJ Delorie) To: magore AT icr2 DOT uwaterloo DOT ca Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, eliz AT is DOT elta DOT co DOT il Subject: Re: Q: Memory Access to DOS area running a go32 exec under windows ? > > #define peek16(a) _farpeekw(0,a) > #define poke16(a,b) _farpokew(0,a,b) Selector zero is not valid - it guarantees a fault. Use the selector returned from __go32_conventional_mem_selector() and these will work as expected.