flat assembler
Message board for the users of flat assembler.

Index > OS Construction > VGA - 80x25 Text Mode Scroll Screen in protected mode?

Author
Thread Post new topic Reply to topic
newport



Joined: 08 Jun 2012
Posts: 86
Location: Kentucky, USA
newport 11 Jan 2016, 05:14
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!


Description:
Download
Filename: NewportOS.zip
Filesize: 9.9 KB
Downloaded: 789 Time(s)


_________________
It's the desire to learn that leads to success...

http://www.webicomp.com
Post 11 Jan 2016, 05:14
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 11 Jan 2016, 08:08
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.
Post 11 Jan 2016, 08:08
View user's profile Send private message Visit poster's website Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 618
cod3b453 13 Jan 2016, 21:39
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.
Post 13 Jan 2016, 21:39
View user's profile Send private message Reply with quote
newport



Joined: 08 Jun 2012
Posts: 86
Location: Kentucky, USA
newport 14 Jan 2016, 12:38
thanks for the replies! think i got it figured out..
Post 14 Jan 2016, 12:38
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.