Joined: 08 Jun 2012
Location: Kentucky, USA
VGA - 80x25 Text Mode Scroll Screen in protected mode?
I've gotten my keyboard 'driver' working - so I can type on the screen, however once I reach the bottom of the screen, I need it to scroll up one line so I can see what I continue to type. I've searched all over, but all the examples on the net are in C code which i'm not interested in at this time. Could someone explain how this works in protected mode without using the bios? Thanks!
Joined: 24 Aug 2004
Location: Misner space
Erm, I thought it would just be copying the screen buffer from the next line into the previous line. A simple "rep movsd" would probably suffice, followed by a clearing of the last line ready for the new text.
You can do fancy tricks with pixel scrolling in text mode to make it move smoothly, but that requires a bit more work.
As revolution says - simply write directly to the video buffer but you'll want to have a set of screen buffer and print functions that maintain the state (cursor colours scrolling/line wrap etc) so you can continue to coherently display text. I personally found it easier to do this right from the start in 16bit so that switching to 32/64 wasn't a problem.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum