没有合适的资源?快使用搜索试试~ 我知道了~
首页BIOS 详细中断功能调用
资源详情
资源评论
资源推荐

System BIOS Interrupts
INT 10h Video Service
!"#$%&
!'($%)($*($
+($
)($,-
*.)($
*($'
INT 10h Functions
Function Title
00h Set Video Mode
01h Set Cursor Type
02h Set Cursor Position
03h Return Cursor Position
04h Return Light Pen Position
05h Set Current Video Page
06h Scroll Text Upward
07h Scroll Text Downward
08h Return Character or Attribute
09h Write Character or Attribute
0Ah Write Character
0Bh Set Color Palette
Subfunction BH = 00h Set Palette
Subfunction BH = 01h Set Color Palette
0Ch Write Graphic Pixel
0Dh Read Graphic Pixel
0Eh Write Character
0Fh Return Video Display Mode
13h Write Character String
"
$++#/
$"
Cont0
Index 1

INT 10h Video Service, Continued
Function 00h Set Video Mode
Input: AH = 00h
AL = Video Mode
00h 40 x 25 text mode, monochrome with CGA card
01h 40 x 25 text mode, color with CGA card.
02h 80 x 25 text mode, monochrome with CGA card
03h 80 x 25 text mode, color with CGA card
04h 320 x 200 four-color graphics, with CGA card
05h 320 x 200 monochrome, with CGA card
06h 640 x 200 monochrome, with CGA card
07h 80 x 25 monochrome, with monochrome card
Output: No registers set.
Description Function 00h sets the video mode. Only the video
modes supported in the MDA and CGA video standards
are supported by the system BIOS. This function
programs the CRTC, selects a default color palette, and
clears the video buffer if the proper flag is set in the save
area.
CGA Video Modes
Mode Adapter Resolution Type Colors Lines
and
Rows
Array Max.
Pages
Buffer
0, 1 CGA 320x200 Text 16/256K 40x25 8x8 8 B800h
2, 3 CGA 642x200 Text 16/256K 80x25 8x8 4 B800h
4, 5 CGA 320x200 Graphics 4/256K 40x25 8x8 1 B800h
6 CGA 640x200 Graphics 2/256K 80x25 8x8 1 B800h
7 MDA 720x350 Text None 80x25 9x14 1 B000h
Cont0

INT 10h Video Service, Continued
Function 01h Set Cursor Type
Input: AH = 01h
CH = Starting cursor line (bits 4–0). If set to 20h, the cursor is
disabled.
CL = Ending Cursor Line (bits 4 – 0)
Output: No registers set. 40:60h is updated.
Description Function 01h sets the cursor type. If using MDA,
valid values are 0–13. Using CGA, valid values are 0–7.
If CH is 20h, the cursor is disabled. This function
programs the CRTC to display the text cursor type. Only
one cursor type is maintained for each video page. The
BIOS default values are:
Video Type Description Register Initial Value
Monochrome (MDA) Starting Cursor Line CH 11
Ending Cursor Line CL 12
CGA Color Starting Cursor Line CH 6
Ending Cursor Line CL 7
Function 02h Set Cursor Position
Input: AH = 02h
BH = Video Page Number
DH = Line on Screen
DL = Column on Screen
Output: No registers set. 40:50h is updated.
Description Function 02h positions the cursor in a video page.
Valid values for DH are 0 – 24. Valid values for DL are 0
– 39 in 40-column mode and 0 – 79 in 80-column mode.
If the current video page number is in BH, the BIOS
programs the CRTC to update the current cursor position
on the specified page.
Cont0
Index 3

INT 10h Video Service, Continued
Function 03h Return Cursor Position
Input: AH = 03h
BH = Video Page Number
Output: CH = Beginning Line of the Blinking Cursor
CL = Ending Line of the Blinking Cursor
DH = Line on Screen
DL = Column on Screen
Description Function 03h reads the current cursor position on the
specified video page. This function is used only in text
mode.
Function 04h Return Light Pen Position
Input: AH = 04h
Output: AH = Position on line
00h Position is unreadable
01h Position is readable
04h Light pen disabled or no valid address.
BX = Column on Graphic Screen (Pixel)
CH = Line on Graphic Screen (Raster Line)
CL = Raster line if resolution of mode is less than 200 lines.
DH = Line on text screen
DL = Column on text screen
Description Use this function to find the position of the light pen.
This routine is not accurate in graphics mode and is
ineffective when used on monochrome monitors with
long image-retention phosphors. The raster line value is
always a multiple of two. Depending on screen size, the
pixel value is a multiple of four (in 320 x 200 mode) or
eight (in 640 x 200 mode).
Cont0

INT 10h Video Service, Continued
Function 05h Set Current Video Page
Input: AH = 05h
AL = Video page number
Output: None
Description Function 05h sets a new video page or selects the
portion of the video buffer to be displayed. This function
is ignored if CGA is used because CGA uses the entire
16K video buffer. The BIOS programs the CRTC Start
Address Registers in video modes 0 – 3. The BIOS
maintains the current cursor location in up to eight video
pages at 40:50h. When a new video page is selected, the
BIOS moves the cursor to the position the cursor was at
the last time the requested video page was displayed.
Function 06h Scroll Text Upward
Input: AH = 06h
AL = Number of scrolling lines
BH = Color or attribute for scrolling lines
CH = Line Number of upper left window corner
CL = Column number of upper left window corner
DH = Line number of lower right window corner
DL = Column number of lower right window corner
Output: None
Description Function 06h creates a window defined by values
specified in CH, CL, DH, and DL. It scrolls the number
of window lines upward through the window. The number
of lines is defined in AL, and the color or attribute of the
new lines is in BH. If AL is set to 00h, the window is
cleared.
Cont0
Index 5
剩余63页未读,继续阅读


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0