Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!Leisner.Henr@Xerox.COM From: Leisner.Henr@Xerox.COM (marty) Newsgroups: comp.lang.c Subject: Re: Looking for C functions to access PC memory Message-ID: <10277@brl-adm.ARPA> Date: Wed, 11-Nov-87 07:48:19 EST Article-I.D.: brl-adm.10277 Posted: Wed Nov 11 07:48:19 1987 Date-Received: Fri, 13-Nov-87 21:45:56 EST Sender: news@brl-adm.ARPA Lines: 19 Doug, I think your peek and poke macros will cause problems on PCs due to the segmented nature of the beast. With the compiler I use (Aztec) and a large data model, in order to peek at (say) 0xf0000 absolute, the address becomes 0xf0000000 with a double word. I don't think any C compiler (at least known I know off) does the conversion from absolute addressing to segment/offset on the fly. I know Aztec provides several subroutines to do this. marty ARPA: leisner.henr@xerox.com GV: leisner.henr NS: martin leisner:henr801c:xerox UUCP: martyl@rocksvax.uucp