Page 1 of 1

scrolling the screen

Posted: Tue Mar 11, 2003 12:49 pm
by _adeelmahmood
hi
does any one has the code for scrolling the screen
down .. i mean when we are printing on the scree..
thanx

Re:scrolling the screen

Posted: Tue Mar 11, 2003 1:41 pm
by Whatever5k
Just copy everything one line up and clear the last one:

Code: Select all

memcpy(video_memory, (void*) (0xb8000+(80*2)), 24*80*2);
memset((void*) (0xb8000+(24*80*2)), 0, 80);
video_memory is, of course, 0xb8000