Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 971
Guido Avatar asked Mar 06 '12 21:03

Guido


People also ask

What is BIOS function call?

BIOS interrupt calls can be thought of as a mechanism for passing messages between BIOS and BIOS client software such as an operating system. The messages request data or action from BIOS and return the requested data, status information, and/or the product of the requested action to the caller.

What does int 10H in assembly language?

June 2015. INT 10h, INT 10H or INT 16 is shorthand for BIOS interrupt call 10hex, the 17th interrupt vector in an x86-based computer system. The BIOS typically sets up a real mode interrupt handler at this vector that provides video services.

Which software interrupt provides access to the BIOS keyboard input service?

Interrupt 16h -- Keyboard I/O BIOS provides keyboard service routines under INT 16H. We list here some examples. This BIOS function can be used to read a character from the keyboard. If the keyboard buffer is empty, it waits for a character to be entered.


2 Answers

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.

like image 96
David Given Avatar answered Nov 07 '22 11:11

David Given


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

like image 24
Alexey Frunze Avatar answered Nov 07 '22 12:11

Alexey Frunze