Hello, I am attempting to write some code to be executed in MS-DOS that will copy data from the 0xC000 segment into the 0x8000 segment (this has to do with the video bios).
My problem is that I can not figure out how to access the contents of a specific memory address. From what I have been reading this can be done is DOS, obviously not in windows though.
I see that 'far pointers' will be needed to accomplish this since the data are in two different segments (the memory is represented as segment: offset), but can't seem to even be able to write code that will read the contents of a specified memory address and display them in a printf statement.
For example, can anyone show me how to access the contents of memory address 0xC0000000 and print the contents out in a printf statement?
Any help is greatly appreciated.