www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/06/17:10:58

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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019