How poke in Quick-C to PC memory ?

Daniel E. Platt platt at ndla.UUCP
Sun Jan 29 10:36:24 AEST 1989


In article <6416 at bmc.uu.se>, aring at 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 at YKTVMV.BITNET 	 ||
||			..!uunet!bywater!scifi!ndla!platt 	 ||
||								 ||
||	The opinions expressed here do not necessarily reflect	 ||
||		those of my employer!				 ||
||								 ||
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



More information about the Comp.lang.c mailing list