I want to make a fast scroll
Hi. I-m trying to write a program that can scroll the characters on the screen fast. I know that characters on the screen are actually bytes in some location of RAM memory. The problem is, I dont know what memory locations correspond to the screen.
And, if i Knew, how can I acces those location. Say..
#define UPPER_LEFT_CORNER_LOCATION 0xFFAD // this number is fiction
int main () {
// what should it be?
char *p;
// or?
void *p;
// then..
p= UPPER_LEFT_CORNER_LOCATION;
// so Im pointing to the first position on the screen
*p= 'A';
//... and Im putting and 'A' right there
}
The problems: 1) I dont know the locations that represent the screen, and 2) How can I point there if I find it.
I would aprecciatte if someone tells me. Thanks in advance.