Posted on 2000-03-13
In C, how do you access a specific region in memory? For example I want to be able to read the contents of memory address F000:3070. I am using Borland 3.0. My C code looks like this:
char *p =(char *) 0xF000;
while (p != (char *(0x3070))
There is a specific string located at the address F000:3070 that I need to check for. However when I use the code above, it prints funny ASCII characters. I can use debug, however I would prefer accessing it from code, and reading it into a buffer.
Thanks in advance,
I am a novice to C programming. Can anyone help?