BiOS interrupt call query table

Source: Internet
Author: User
Tags tty mode
To call an interrupt call, you can use the int command in x86 assembly language.
For example, the following x86 assembly language commands can print a character to the screen using the BIOS 0x10 interrupt.
mov ah, 0x0emov al, '!'int 0x10

BiOS interrupt vector table [edit]
Interrupted Description
Int 00 h CPU: triggered when division is zero or the provider is invalid
Int 01 H CPU: One-Step trap. When TF is marked as open, each command is triggered after execution.
Int 02 h CPU: unshielded interruptions. If a memory error occurs during self-testing.
Int 03 h CPU: The first undefined interrupt vector, which is generally used only for program debugging.
Int 04 H CPU: computing overflow. It is usually triggered by the into command when the overflow bit is set.
Int 05 h Triggered when a range exception is detected by pressing shift-print screen or bound.
Int 06 h CPU: Invalid Command.
Int 07 h CPU: If there is no math coprocessor, an attempt to execute a floating point command is triggered.
Int 08 h Irq0: the programmable interrupt controller is triggered every 55 milliseconds, that is, 18.2 times per second.
Int 09 h Irq1: Press, hold, and release the keyboard each time.
Int 0ah Irq2:
Int 0bh Irq3: com2/com4.
Int 0ch Irq4: COM1/com3.
Int 0dh Irq5: hard disk controller (under PC/XT) or lpt2.
Int 0eh Irq6: called by the disk controller when needed.
Int 0fh Irq7: LPT1.
Int 10 h Display service-set by BIOS or operating system for software calls.

Ah = 00 h Set Display Mode
Ah = 01 H Set the cursor format
Ah = 02 h Set the cursor position
Ah = 03 h Obtain the cursor position and form
Ah = 04 H Obtain the pen position
Ah = 05 h Set display page
Ah = 06 h Clear or scroll screen (upper)
Ah = 07 h Clear or scroll screen (bottom)
Ah = 08 h Read the characters and attributes at the cursor
Ah = 09 h Changing the characters and attributes at the cursor
Ah = 0ah Change the character at the cursor
Ah = 0bh Set the border color
Ah = 0eh Write characters in tty Mode
Ah = 0fh Get current display mode
Ah = 13 H Write string
Int 11 h Return to the device list.
Int 12 h Obtain the general memory capacity.
INT 13 H Low-level Disk Service.

Ah = 00 h Reset the disk drive.
Ah = 01 H Check the disk drive status.
Ah = 02 h Read sector.
Ah = 03 h Write sector.
Ah = 04 H Verify the slice.
Ah = 05 h Format the track.
Ah = 08 h Obtain the drive parameters.
Ah = 09 h Initialize hard drive parameters.
Ah = 0ch Seek.
Ah = 0dh Reset the hard disk controller.
Ah = 15 h Obtain the drive type.
Ah = 16 h Obtains the status of the disk.
Int 14 h Serial Communication routine.

Ah = 00 h Initialize the serial port.
Ah = 01 H Write characters.
Ah = 02 h Read characters.
Ah = 03 h Status.
Int 15 h Others (system support routines ).

Ah = 4fh Keyboard interception.
Ah = 83 H Event wait.
Ah = 84 h Read the game rod.
Ah = 85 H The sysrq key.
Ah = 86 H Wait.
Ah = 87 h Block Movement.
Ah = 88 h Obtain the extended memory capacity.
Ah = c0h Obtain system parameters.
Ah = c1h Obtain the extended BIOS data segment.
Ah = c2h Pointer device function.
Ah = e8h, Al = 01 H (AX = e801h) Get the extended memory capacity (new features introduced since 1944), and get the memory capacity of more than 64 MB.
Ah = e8h, Al = 20 h (AX = e820h) Query System address ing. This function replaces AX = e801h and Ah = 88 h.
Int 16 h Keyboard communication routine.

Ah = 00 h Read characters.
Ah = 01 H Read input status.
Ah = 02 h Read Shift key (modify key) status.
Ah = 10 h Read characters (enhanced version ).
Ah = 11 h Read input status (enhanced version ).
Ah = 12 h Read Shift key (modify key) status (enhanced version ).
Int 17 h Print Service.

Ah = 00 h Print characters.
Ah = 01 H Initialize the printer.
Ah = 02 h Check the printer status.
Int 18 h Run the BASIC program on the tape: the "real" IBM compatible machine has a built-in BASIC Program in the Rom. When the boot fails, the BIOS calls this routine to explain the execution. (For example, print prompts such as "boot disk error. Replace disk and press any key to continue)
Int 19 h After power-on self-check, load it into the operating system.
Int 1ah Real-time clock service.

Ah = 00 h Read the real clock.
Ah = 01 H Set the real clock.
Ah = 02 h Read real-time clock.
Ah = 03 h Set the real-time clock.
Ah = 04 H Read the real-time clock date.
Ah = 05 h Set the real-time clock date.
Ah = 06 h Set real-time clock alarms.
Ah = 07 h Reset the real-time clock.
Int 1bh CTRL + break, automatically called by IRQ 9.
Int 1ch Reserved, automatically called by IRQ 8.
Int 1dh Not callable: pointer to the video parameter table (including the video mode data.
Int 1eh Not callable: pointer to the floppy disk mode table (containing a large amount of information about the floppy disk.
Int 1fh Not callable: information pointing to the video image sequence table (containing ASCII characters from 80 h to FFH.
Int 41 h Address pointer: Hard Disk parameter table (first hard disk ).
Int 46 h Address pointer: Hard Disk parameter table (second hard disk ).
Int 4ah The real clock is called when an alarm is triggered.
Int 70 h Irq8: called by the real clock.
Int 74 h Irq12: called by the mouse
Int 75 h Irq13: called by the mathematical coprocessor.
Int 76 H Irq14: called by the first ide Controller
Int 77 H Irq15: called by the second ide Controller

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.