Guido
Guido

Reputation: 2634

Page number in BIOS interrupts

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

Answers (2)

Alexey Frunze
Alexey Frunze

Reputation: 62048

Just use page 0, which is the default current page.

Upvotes: 1

David Given
David Given

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

Related Questions