Int 10 h interrupt in DOS

Source: Internet
Author: User
Int 10 h interrupt
Function No.: 00 h

Function: sets the display mode.
Entry parameter: Ah = 00 h
Al = Display Mode
Display Mode list:

Display Mode attributes
00 h 40 × 25 16-color text
01 H 40 × 25 16-color text
02 h 80 × 25 16-color text
04 H 320x200 4 colors
05 h 320x200 4 colors
06 h 640x200 2 colors
07 h 80 × 25 2-color text
08 h 160x200 16 colors
09 h 320x200 16 colors
0ah 640x200 4 colors
0bh Reserved
0ch Reserved
0dh 320x200 16 colors
0eh 640x200 16 colors
0fh 640x350 2 colors (monochrome)
10 h 640x350 4 colors
11 h 640x480 2 colors
12 h 640x480 16 colors
13 H 320x200 256 colors

Feature No. 01 H

Function: Set the cursor shape.
Entry parameter: Ah = 01 H
Ch four-bit lower = start line of the cursor
CL four-bit lower = the end line of the cursor
Exit parameter: None

Function No.: 02 h

Function: sets the cursor position in the text coordinate.
Entry parameter: Ah = 02 h
BH = display page number
DH = row (Y coordinate)
DL = column (x coordinate)
Exit parameter: None

Function No.: 03 h

Function: reads various information about the cursor in the text coordinate.
Entry parameter: Ah = 03 h
BH = display page number
Exit parameter: CH = start line of the cursor
CL = end line of the cursor
DH = row (Y coordinate)
DL = column (x coordinate)

Function No.: 04 H

Function: gets the current status and position of the optical pen.
Entry parameter: Ah = 04 H
Exit parameter: Ah = 00 h-the optical pen is not pressed/not triggered, 01 H-the optical pen has been pressed/triggered
BX = pixel column (Graphic X coordinate)
Ch = pixel line (x y coordinate, display mode: 04h ~ 06 h)
Cx = pixel line (x y coordinate, display mode: 0dh ~ 10 h)
DH = Character Line (Y coordinate of text)
DL = character column (Text X coordinate)

Function No.: 05 h

Function: sets the display page, that is, select the display page of the activity
Entry parameter: Ah = 05 h
Al = display page
For CGA, memory, mcga, and VGA, the following table lists the display pages:
Mode page number display type
00 h 01 H 0 ~ 7 CGA, middleware, mcga, VGA
02 h 03 H 0 ~ 3 CGA
02 h 03 H 0 ~ 7 Tib, mcga, VGA
07 h 0 ~ 7 Tib, VGA
0dh 0 ~ 7 Tib, VGA
0eh 0 ~ 3 Tib, VGA
0fh 0 ~ 1 Tib, VGA
10 H 0 ~ 1 Tib, VGA

Function No.: 06h and 07 h

Function: Initialize screen or scrolling
Entry parameters: Ah = 06 h-scroll up, 07 h-scroll down
Al = number of rows to scroll (0-clear window)
BH = default attribute of blank area
(CH, Cl) = position in the upper left corner of the window (Y coordinate, X coordinate)
(DH, DL) = position in the lower right corner of the window (Y coordinate, X coordinate)
Exit parameter: None

Function No.: 08 h

Function: Read the characters at the cursor and their attributes.
Entry parameter: Ah = 08 h
BH = display page number
Exit parameter: Ah = attribute
Al = character

Function No.: 09 h

Function: displays characters at the current cursor according to the specified attribute.
Entry parameter: Ah = 09 h
Al = character
BH = display page number
BL = attribute (text mode) or color (graphic mode)
Cx = number of repeated output characters
Exit parameter: None

Function No.: 0ah

Function: display characters at the current cursor according to the original attribute
Entry parameter: Ah = 0ah
Al = character
BH = display page number
BL = color (graphic mode, applicable only to pcjr)
Cx = number of repeated output characters
Exit parameter: None

Function No.: 0bh

Function: sets the color palette, background color, or border.
Entry parameter: Ah = 0bh
Set color: bH = 00 h, BL = color
Select the color palette: bH = 01 H, BL = color palette (320x200, 4 color graphics mode)
Exit parameter: None

Function No.: 0ch

Function: Write image pixels.
Entry parameter: Ah = 0ch
Al = pixel value
BH = page number
(CX, dx) = graphic coordinate column (x), row (y)
Exit parameter: None

Function No.: 0dh

Function Description: Read image pixels.
Entry parameter: Ah = 0dh
BH = page number
(CX, dx) = graphic coordinate column (x), row (y)
Exit parameter: Al = pixel value

Function No.: 0eh

Function: display characters in teletype mode.
Entry parameter: Ah = 0eh
Al = character
BH = page number
BL = foreground (graphic mode)
Exit parameter: None

Function No.: 0fh

Function: Read the display mode.
Entry parameter: Ah = 0fh
Exit parameter: Ah = number of screen characters
Al = display mode (see the description in function 00h)
BH = page number

Function No.: 10 h

Function Description: Color interruption. Its sub-functions are described as follows:
Function subfunction name function subfunction name
00 h set the palette register 01 H set the border color
02 h set the color palette and border 03 h trigger flashing/highlighted
07 h read palette register 08 h read border color
09 h read the color palette and border 10 h set the color register
12 h set color register Block 13 H set color Page Status
15 h read color register 17 H read color register Block
1ah read color page status 1bh set grayscale Value

Function No.: 11 h

Function: The font is interrupted. Its sub-functions are described as follows:
Sub-function number sub-function name
00 h loading user fonts and Programmable Controllers
10 h loading user fonts and Programmable Controllers
01 H loaded 8x14 Rom font and Programmable Controller
11 h loaded 8x14 Rom font and Programmable Controller
02 h loaded 8x8 Rom font and Programmable Controller
12 h loaded 8x8 Rom font and Programmable Controller
03 h set block indicator
04 H loaded 8x16 Rom font and Programmable Controller
14 h loaded 8x16 Rom font and Programmable Controller
20 h set int 1fh font pointer
21 h: Set int 43 h for the user's font
22 h: Set int 43 h for the 8x14 Rom font
Set int 43 H for 8x8 Rom font for 23 h
24 h: Set the int 43 h for the 8x16 Rom font
30 h read font information

Function No.: 12 h

Function: the configuration of the monitor is interrupted. Its sub-functions are described as follows:
Function No. Function Name
10 h read configuration information
20 h Screen Printing
30 h set scan row
31 H allow/disable loading the default palette
32 h allow/disable display
33 H gray sum allowed/disabled
34 h allow/disable cursor Simulation
35 h switch activity display
36 h enable/disable screen refresh

 

Function No.: 13 H

Function: Display strings in teletype mode.
Entry parameter: Ah = 13 H
BH = page number
BL = attribute (if Al = 00h or 01 H)
Cx = display String Length
(DH, DL) = coordinates (rows, columns)
ES: BP = display string address Al = display output mode
0-the string contains only the display characters, and its display attribute is in Bl. The cursor position remains unchanged after display
1-The string contains only the display characters, and its display attribute is in Bl. The cursor position changes after the display
2-The string contains the display characters and display attributes. The cursor position remains unchanged after display
3-The string contains the display characters and display attributes. The cursor position changes after the display

Exit parameter: None

Function No.: 1ah

Function: Read/set and display the combined encoding, which is only valid for PS/2.

Function No.: 1bh

Function: Read the function/status information, which is only valid for PS/2.

Function No.: 1ch

Function: Save/restore the display status. valid only for PS/2.

Graphic mode:

The format of the color attribute in BH is as follows:

 

7

6

5

4

3

2

1

0

Description

BL

R

G

B

I

R

G

B

 

Flashing

Red

Green

Blue

Highlight

Red

Green

Blue

 

 

Background

 

Prospect

Example

1

1

 

 

1

 

1

 

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.