X01.os.1:bios Interrupt

Source: Internet
Author: User

It's just a little prep work. In order to display the string, you need to call interrupt: int 0x10 (ah=0x13). Specific parameter settings, refer to my summary of the following:

INT ten (AH = 0)

-----------------
Function: Set display mode
Call Parameters:
AL = 00:40 * 25 black and white Way
01:40 * 25 Color mode
02:80 * 25 black and white Way
03:80 * 25 Color mode
04:320 * 200 Color graphic mode
05:320 * 200 Black and white graphic mode
06:640 * 200 Black and white graphic mode
07:80 * 25 Monochrome text mode
08:160 * 200 16 Color graphics (PCJR)
09:320 * 200 16 Color graphics (PCJR)
0a:640 * 200 16 Color graphics (PCJR)
0B: Reserved (EGA)
0C: Reserved (EGA)
0D:320 * 200 Color graphics (EGA)
0e:640 * 200 Color graphics (EGA)
0f:640 * 350 Black and white graphics (EGA)
10:640 * 350 Color graphics (EGA)
11:640 * 480 Monochrome graphics (EGA)
12:640 * 480 16 Color Graphics (EGA)
13:320 * 200 256 color graphics (EGA)
40:80 * 30 Color graphics (CGE400)
41:80 * 50 Color graphics (CGE400)
42:640 * 400 Color graphics (CGE400)

INT ten (AH = 1)
---------------
Function: Set Cursor type
Call Parameters:
CH (0-3) = cursor start line
CL (0-3) = Cursor End line

INT ten (AH = 2)
----------------
Function: Place cursor position
Call Parameters:
BH = page number
DH,DL = row, column

INT ten (AH = 3)
----------------
Function: Read cursor position
Call Parameters:
BH = page number
Return parameters:
CH = cursor start line
DH,DL = row, column

INT ten (AH = 4)
----------------
Function: Read stylus position
Return parameters:
AH = 0: Stylus not triggered
1: Light Stroke hair
CH = like Motoyuki
BX = Pixel Column
DH = character lines
DL = Character column

INT Ten (AH = 5)
----------------
Features: Display page
Call Parameters:
AL = page number

INT Ten (AH = 6)
----------------
Features: screen initialization or roll up
Call Parameters:
AL = volume of rows
0: Entire window blank
BH = Entangled line property
CH = upper left corner line number
CL = upper left corner column number
DH = lower right corner line number
DL = lower right column number

INT ten (AH = 7)
---------------
Features: screen initialization or volume down
Call Parameters:
AL = number of rows under volume
0: Entire window blank
BH = Entangled line property
CH = upper left corner line number
CL = upper left corner column number
DH = lower right corner line number
DL = lower right column number

INT ten (AH = 8)
----------------
Function: Read the characters and properties of the cursor position
Call Parameters:
BH = Display Page
Return parameters:
AH = Property
AL = character

INT Ten (AH = 9)
----------------
Function: Displays characters and their properties at the cursor position
Call Parameters:
BH = Display Page
AL = character
BL = attribute
CX = number of characters repeats

INT ten (AH = A)
----------------
Function: Displays characters at the cursor position
Call Parameters:
BH = Display Page
AL = character
CX = number of characters repeats

INT ten (AH = B)
----------------
Function: color palette (320 * 320 graphics)
Call Parameters:
BH = color palette ID
BL = and ID matching colors used

INT ten (AH = C)
----------------
Function: Write pixel
Call Parameters:
DX = line (0--199)
CX = column (0--639)
AL = pixel value

INT ten (AH = D)
----------------
function: Read pixels
Call Parameters:
DX = line (0--199)
CX = column (0--639)
Return parameters:
AL = pixel value

INT ten (AH = E)
----------------
Function: Display character (cursor forward)
Call Parameters:
AL = character
BL = foreground color

INT ten (AH = F)
----------------
Function: Take the current display mode
Return parameters:
AH = number of character columns
AL = display Mode

INT ten (AH = 13)
-----------------
Function: Display string (for at)
Call parameter:; return parameter
ES:BP = string Address
CX = string length
DH,DL = Start Row, column
BH = page number
AL = 0,BL = Property
String: Char,char,... The cursor returns to the starting position.
AL = 1,BL = property; cursor follows move
String: Char,char,...
AL = 2; The cursor returns to the starting position
String: Char,char,...
AL = 3; Cursor follows move
String: Char,char,...

INT 11
------
Function: Device check
Return parameters:
AX = return value
BIT0 = 1: Equipped with a disk
Bit1 = 1:80,287 coprocessor
bit4,5 = 10:40 * BW (color board)
01:80 * BW (color board)
11:80 * BW (Black and white board)
bit6,7 = floppy disk drive
bit9,10,11 = RS-232 Plate number
bit12 = Game Adapter
bit14,15 = printer Number

INT 12
-------
Function: Measuring memory capacity
Return parameters:
AX = number of bytes (KB)

INT (AH = 0)
----------------
Function: Floppy disk system reset


INT (AH = 1)
----------------
Function: Read floppy status
Return parameters:
AL = Status byte

INT (AH = 2)
----------------
Function: Read disk
Call Parameters:
AL = number of sectors
CH,CL = track number, sector area code
DH,DL = magnetic number, drive letter
ES:BX = Data buffer Address
Return parameters:
Success: AH = 0,al = number of sectors Read
Failed: AH = error code

INT (AH = 3)
----------------
Function: Write disk
Call Parameters:
AL = number of sectors
CH,CL = track number, sector area code
DH,DL = magnetic number, drive letter
ES:BX = Data buffer fetch Address
Return parameters:
Success: AH = 0, AL = number of sectors written
Failed: AH = error code

INT (AH = 4)
----------------
Function: Verify disk sector
Call Parameters:
AL = number of sectors
CH,CL = track number, sector area code
DH,DL = magnetic number, drive letter
Return parameters:
Success: AH = 0,al = number of sectors inspected
Failed: AH = error code

INT (AH = 5)
----------------
Function: Format disc track
Call Parameters:
ES:BX = Track Address
Return parameters:
Success: AH = 0
Failed: AH = error code

INT (AH = 0)
----------------
Function: Initialize serial communication port
Call Parameters:
AL = Initialization Parameters
DX = Communication slogan (0,1)
Return parameters:
AH = Communication Port Status
AL = Modem Status

INT (AH = 1)
----------------
Function: Write character to serial communication port
Call Parameters:
AL = character
DX = Communication slogan (0,1)
Return parameters:
Write success: AH (7) = 0
Write failure: AH (7) = 1
AH (0-6) = Communication Port Status

INT (AH = 2)
----------------
Function: Read characters from serial communication port
Call Parameters:
DX = Communication slogan (0,1)
Return parameters:
Read success: AH (7) = 0, AL = character
Read failure: AH (7) = 1
AH (0-6) = Communication Port Status

INT (AH = 3)
----------------
Function: Take the communication port status
Call Parameters:
DX = Communication slogan (0,1)
Return parameters:
AH = Communication Port Status
AL = Modem Status

INT (AH = 0)
----------------
Function: Start the cassette-type tape motor

INT (AH = 1)
----------------
Function: Stop cassette motor

INT (AH = 2)
----------------
Function: Tape block read
Call Parameters:
ES:BX = data Transfer area address
CX = number of bytes
Return parameters:
AH = Status byte
00: Read Success
01: Redundancy Test Error
02: No Data transfer
04: No Boot
08: Illegal Order

INT (AH = 3)
----------------
Function: Tape chunked write
Call Parameters:
DS:BX = data Transfer area address
CX = number of bytes
Return parameters:
Ditto

INT (AH = 0)
----------------
Function: Read characters from keyboard
Return parameters:
AL = character code
AH = Scan Code

INT (AH = 1)
----------------
Function: Read keyboard buffer characters
Return parameters:
ZF = 0:al = character code, AH = Scan code
ZF = 1: Buffer empty

INT (AH = 2)
----------------
Function: Take keyboard status byte
Return parameters:
AL = Keyboard State byte

INT (AH = 0)
----------------
Function: print character, loopback status byte
Call Parameters:
AL = character
DX = printer Number
Return parameters:
AH = Printer Status byte

INT (AH = 1)
----------------
Function: Initialize printer, loopback status byte
Call Parameters:
DX = printer Number
Return parameters:
AH = Printer Status byte

INT (AH = 2)
----------------
function: Take status byte
Call Parameters:
DX = printer Number
Return parameters:
AH = Printer Status byte

INT 1 A (AH = 0)
----------------
function: Read clock
Return parameters:
CH:CL = time: Minute
Dh:dl = seconds: 1/100 seconds

INT 1 A (AH = 1)
----------------
Function: Set clock
Call Parameters:
CH:CL = time: Minute
Dh:dl = seconds: 1/100 seconds

INT 1 A (AH = 2)
----------------
Function: Read real time clock (for at)
Return parameters:
CH:CL = time: Minute (BCD)
DH:DL = seconds: 1/100 sec (BCD)

INT 1 A (AH = 6)
----------------
Function: Set alarm time (for at)
Call Parameters:
CH:CL = time: Minute (BCD)
DH:DL = seconds: 1/100 sec (BCD)

INT 1 A (AH = 7)
----------------
Function: Clear alarm (for at)

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.