Go BIOS Interrupt Assembler Function---retention

Source: Internet
Author: User

10H Interrupt int 10h Detailed description of this article by arthinking posted 4 year ago |Assembly Language |  number of Reviews 8 | Be onlookers 18,813 views+
The 10H interrupt in the assembly is a service program provided by the BIOS to the monitor and screen. When using the Int 10h service program, you must first specify the AH register to display one of the service numbers below to specify the function to invoke. Display Service (Video service:int 10h) 00H: Setting the display mode

01H: Set cursor shape

02H: Set cursor position

03H: Reading cursor information

04H: Reading the stylus position

05H: Set the Display page

06H, 07H: Initialize or scroll the screen

08H: Read the characters at the cursor and their properties

09H: Displays characters at the cursor at the specified property

0AH: Displays characters at the current cursor

0BH: Set palette, background color, or border

0CH: Write graphic image pigment

0DH: Graphic image Reading

0EH: Display characters in teletype mode

0FH: Read display mode

10H: Color

11H: Font

12H: Configuration of the Monitor

13H: Displaying strings in teletype mode

1AH: Read/Set display combination code

1BH: Read function/status information

1CH: Save/restore Monitor status

The following is a detailed description of each function number: 1, function 00H function Description: Set the display mode

Entry parameter: ah=00h

al= display mode, see the table below

Export parameters: None

The available display modes are listed as follows:

00h:40x25 16 Color text

01h:40x25 16 Color text

02h:80x25 16 Color text

03h:80x25 16 Color text

04H:320X200 4 Colors

05H:320X200 4 Colors

06H:640X200 2 Colors

07h:80x25 2 Color text

08h:160x200 16 Colors

09h:320x200 16 Colors

0AH:640X200 4 Colors

0BH: Reserved

0CH: Reserved

0dh:320x200 16 Colors

0eh:640x200 16 Colors

0FH:640X350 2 (monochrome)

10H:640X350 4 Colors

10h:640x350 16 Colors

11h:640x480 2 Colors

12h:640x480 16 Colors

13h:640x480 256 Colors

For the Super VGA display card, we can use AX=4F02H and the following BX values to set its display mode.

BX Display Mode Properties

100H:640X400 256 Colors

101h:640x480 256 Colors

102h:800x600 16 Colors

103H:800X600 256 Colors

104h:1024x768 16 Colors

105h:1024x768 256 Colors

106h:1280x1024 16 Colors

107H:1280X1024 256 Colors

108h:80x60 text mode

109h:132x25 text mode

10ah:132x43 text mode

10bh:132x50 text mode

10ch:132x60 text mode

2. function 01H Function Description: Set cursor shape

Entry parameter: ah=01h

ch Low Four bit = start line of cursor

CL low Four bit = terminating line of cursor

Export parameters: None

3. function 02H Function Description: Set the cursor position with text coordinates

Entry parameter: ah=02h

Bh= Show Page numbers

Dh= Line (y-coordinate)

dl= column (x coordinate)

Export parameters: None

4, Function 03H function Description: In text coordinates, reading the cursor various information

Entry parameter: ah=03h

Bh= Show Page numbers

Exit Parameters: Ch= The starting line of the cursor

Cl= the terminating line of the cursor

Dh= Line (y-coordinate)

dl= column (x coordinate)

5. Function 04H function Description: Get current status and stylus position

Entry parameter: ah=04h

Export parameters: ah=00h--stylus not pressed/not triggered, 01h--stylus has been pressed/triggered

bx= image Sole (graphic x-coordinate)

Ch= image Motoyuki (graphical y-coordinate, display mode: 04h~06h)

cx= image Motoyuki (graphical y-coordinate, display mode: 0dh~10h)

dh= character lines (text y-coordinate)

dl= character column (text x coordinate)

6, Function 05H function Description: Set the Display page, that is, select the active display page

Entry parameter: ah=05h

al= Display Page

For CGA, EGA, MCGA, and VGA, the display page is listed in the following table: Mode page Display Type

00H, 01H0~7CGA, EGA, MCGA, VGA

02H, 03H0~3CGA

02H, 03h0~7ega, MCGA, VGA

07h0~7ega, VGA

0dh0~7ega, VGA

0eh0~3ega, VGA

0fh0~1ega, VGA

10h0~1ega, VGA

For PCjr:

al=80h--Read CRT/CPU page register

81h--Setting the CPU page register

82h--Setting the CRT page register

83h--Setting the CRT/CPU page register

BH=CRT Pages (sub-function numbers 82H and 83H)

BL=CPU Pages (sub-function numbers 81H and 83H)

Export parameters: For the former, no exit parameters, but for PCjr in sub-function 80h~83h call, there are: BH=CRT page register, bl=cpu page register

7. function 06H and 07H function Description: Initialize screen or scroll screen

Inlet parameter: ah=06h--scroll up, 07h--scroll down the screen

al= Number of scrolling rows (0--clear window)

Bh= default properties for blank areas

(CH, CL) = position of the upper-left corner of the window (y-coordinate, x-coordinate)

(DH, DL) = position of the lower-right corner of the window (y-coordinate, x-coordinate)

Export parameters: None

8 function 08H Function Description: The characters at the reading cursor and their properties

Entry parameter: ah=08h

Bh= Show Page numbers

Export Parameters: Ah= Property

al= characters

9. Function 09H Function Description: Displays the character at the current cursor by the specified property

Entry parameter: ah=09h

al= characters

Bh= Show Page numbers

Bl= Property (text mode) or color (graphic mode)

cx= number of repeated output characters

Export parameters: None

10. Function 0AH Function Description: Displays characters at the current cursor by their original properties

Entry parameter: ah=0ah

al= characters

Bh= Show Page numbers

Bl= Color (graphics mode, only for PCJR)

cx= number of repeated output characters

Export parameters: None

11. Function 0BH Function Description: Set palette, background color, or border

Entry parameter: AH=0BH

Set Color: bh=00h,01= color

Select palette: bh=01h,bl= palette (320x200, 4-color graphics mode)

Export parameters: None

12, Function 0CH

Function Description: Write graphic image

Entry parameter: ah=0ch

al= Pixel Value

Bh= page

(CX, DX) = Graphic coordinate column (X), row (Y)

Export parameters: None

13. Function 0DH Function Description: Reading image

Entry parameter: AH=0DH

Bh= page

(CX, DX) = Graphic coordinate column (X), row (Y)

Export parameters: al= pixel value

14. Function 0EH Function Description: Display characters in teletype mode

Entry parameter: Ah=0eh

al= characters

Bh= page

Bl= foreground (graphic mode)

Export parameters: None

15, Function 0FH function Description: Read the display mode

Entry parameter: AH=0FH

Export parameters: ah= number of columns for screen characters

al= display mode (see description in function 00H)

Bh= page

16, Function 10H function Description: color interruption.

Its sub-functions are described below:

00h-Setting the Palette register

01h-Setting the border color

02h-setting palettes and Borders

03h-trigger flashing/light digits

07h-Reading Palette Registers

08h-Read Border color

09h-reading palettes and borders

10h-Setting the Color register

12h-Setting the color register block

13h-Setting the Color page status

15h-reading the Color register

17h-reading a color register block

1ah-Read Color page status

1bh-Setting Grayscale values

17, Function 11H function Description: Font interrupt.

Its sub-functions are described below:

00H Loading user fonts and programmable controllers

10H Loading user fonts and programmable controllers

01H loading 8x14 ROM fonts and programmable controllers

11H loading 8x14 ROM fonts and programmable controllers

02H loading 8x8 ROM fonts and programmable controllers

12H loading 8x8 ROM fonts and programmable controllers

03H Set Block indicator

04H loading 8x16 ROM fonts and programmable controllers

14H loading 8x16 ROM fonts and programmable controllers

20H set int 1Fh font pointer

21H set int 43h for user font

22H set int 43H for 8x14 rom font

23H set int 43H for 8x8 rom font

24H set int 43H for 8x16 rom font

30H Reading font information

18, Function 12H function Description: The configuration of the monitor is interrupted.

Its sub-functions are described below:

10h-Reading configuration information

20h-Select screen Printing

30h-Setting Scan lines

31h-Allow/disallow loading of default palette

32h-Allow/disable display

33h-Allow/Disallow grayscale summation

34h-Allow/disable cursor emulation

35h-Toggle Activity Display

36h-Allow/disable screen refresh

19. Function 13H Function Description: Display the string in teletype mode

Entry parameter: ah=13h

Bh= page

bl= attribute (if al=00h or 01H)

cx= Display String length

(DH, DL) = Coordinate (row, column)

es:bp= display the address of the string al= display the output mode

The 0--string contains only display characters, and its display property is in BL. When displayed, the cursor position is unchanged

The character string contains only display characters, and its display property is in BL. After display, the cursor position changes

The 2--string contains display characters and display properties. When displayed, the cursor position is unchanged

The 3--string contains display characters and display properties. After display, the cursor position changes

Export parameters: None

20, Function 1AH function Description: Read/Set display combination code, only PS/2 valid, in this withheld 21, function 1BH function Description: Read function/status information, only PS/2 valid, in this withheld 22, function 1CH function Description: Save/restore Monitor state, only PS/2 effective, In this withheld in addition to the article has special instructions, are it house original articles, reproduced please link to the form of the source.
This article links: http://www.itzhai.com/assembly-int-10h-description.html Keywords: assembly language

Go BIOS Interrupt Assembler Function---retention

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.