Memory Access

Brian K. W. Hook jdb at reef.cis.ufl.edu
Sat Dec 15 05:13:50 AEST 1990


Well, assuming that you are on a non protected mode machine (ie. IBM PC)
that lets you read into any absolute memory address, you can use standard
C pointers to read in individual characters.  However, for large memroy
locations (locations outside of your segment) you needs to uses a 
FAR pointer.  Read the documentation on MK_FP, FP_SEG, and FP_OFF for
more on that.  I suppose that you could use memcpy to copy a specified
amount of memory and then you could examine it later as a string....
Turbo C have a poke and peek function built in, but this assumes that you
are using TC on a DOS machine.



More information about the Comp.lang.c mailing list