In C, how do I write to a particular memory location e.g. video memory b800, in DOS (real DOS, MS DOS 6.22)
I understand that C doesn't have anything built in to do that, but that there may be some platform specific e.g. DOS specific API functions that can.
A small demo program that does it would be great.
I have Turbo C (TCC.EXE - not tiny c compiler, Turbo C compiler)
I know debug can do it (e.g. some of the tiny bit of debug that I know) -f b800:0 FA0 21 CE
(that writes some exclamation marks to the command line). But i'd like a C program to write to b800:0