Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!ncar!ames!amdcad!sun!pitstop!sundc!seismo!uunet!bywater!scifi!ndla!platt From: platt@ndla.UUCP (Daniel E. Platt) Newsgroups: comp.lang.c Subject: Re: How poke in Quick-C to PC memory ? Summary: how to poke... Message-ID: <193@ndla.UUCP> Date: 29 Jan 89 00:36:24 GMT References: <6416@bmc.uu.se> Lines: 26 In article <6416@bmc.uu.se>, aring@bmc.uu.se writes: > How do you poke, in quick-C, to a memory adress on a PC ? > Equivalently, how do you set a pointer to point to, say, the base of > a memory mapped I/O board ? > gratefull for help, Avi Ring. If the address is addr (type long) such as 0x010023afL where the above refers to location 0100:23af and you want to put a data type 'foo' there, you can refer to that memory as (foo *)0x010023afL. Dan Platt -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- || || || Dan Platt 1(914)941-2474 || || Watson (IBM) PLATT@YKTVMV.BITNET || || ..!uunet!bywater!scifi!ndla!platt || || || || The opinions expressed here do not necessarily reflect || || those of my employer! || || || -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-