home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!swrinde!emory!gwinnett!blackwlf!ericwebb
- From: ericwebb@blackwlf.gwinnett.com (eric webb)
- Newsgroups: comp.lang.c
- Subject: Peek/Poke in C
- Message-ID: <BV5XVB5w165w@blackwlf.gwinnett.com>
- Date: Thu, 17 Dec 92 16:43:34 EST
- Reply-To: ericwebb@blackwlf.gwinnett.com (eric webb)
- Organization: BlackWolf's Den (404)642-9933 v.32bis v.42bis 12/24/96/14.4
- Lines: 18
-
- Hi again.. does anyone know how to do equivalent of BASIC's PEEK & POKE
- statements in C? My guess is that you need to use a far pointer to the
- type of data (i.e., char, int, etc.), and then stuff the ptr with the seg
- & offset. How does one do this stuffing? Does anyone know of any other
- way to do it?? I need to go both ways, esp. POKE.
-
- Tks..
-
- Eric Webb
-
- ericwebb@blackwlf.gwinnett.com
-
-
- ---------------------------------------------------------
- From Eric Webb: ericwebb@blackwlf.gwinnett.com
- * Party Hard, Life's Short... *
- Feel the shockwave? - TSR
- ---------------------------------------------------------
-