scrolling the screen

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
_adeelmahmood

scrolling the screen

Post by _adeelmahmood »

hi
does any one has the code for scrolling the screen
down .. i mean when we are printing on the scree..
thanx
Whatever5k

Re:scrolling the screen

Post 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
Post Reply