Reputation: 2634
I'm building a small bootloader for x86 as a project. For the moment I'm writing several functions to handle the screen, since it's a bit tedious. Most BIOS interrupt functions involve a page number argument, and I can't tell what this is for. Wikipedia hasn't nothing to say, I think.
Does anyone know what the page number represents?
Thanks
Upvotes: 12
Views: 3067
Reputation: 13691
There's enough video memory to allow multiple text screens side-by-side. The page numbers allow you to do double-buffering, where you draw to an off-screen page, and then when it's ready change the currently visible page to the new one.
See the infamous and still invaluable Ralph Brown's Interrupt List for more (well, a little more) information:
http://www.ctyme.com/intr/rb-0087.htm
In particular, look at int 0x10 AH=0x05, which lets you change the current visible page.
Upvotes: 13