Some common DOS functions & interrupts used in 8086
INT
10H
*Video
mode
**Attribute
BL & I
are usually zero.
Black foreground and
blue background the attribute should be 10h.
INT
10H
Functions (Content of AH) | Description |
00 | Set the video mode* as specified by the content of AL. |
02 | Set cursor position BH <- page number(usually 0) DH <- row number DL <- column number |
03 | Return cursor positions DH <- current row number DL <- current column number |
09 | Display the character and attribute AL <-character to display BL <-Attribute** BH <-page number(0) CX <-counter value (no of times to repeat the character) |
13H | Display character string AL<- 00(advance cursor) or 01(do not advance cursor) BH<- page number(00h) BL<- Attribute BP<- Effective address of the string to be displayed CX<- Length of the string DH<- Row in which the string is to be displayed DL<- Column in which the string is to be displayed |
*Video
mode
Mode | ROW*COLUMN | COLOR MODE | No. OF COLORS |
00 | 25*40 | COLOR | 16 |
01 | 25*40 | COLOR | 16 |
02 | 25*80 | COLOR | 16 |
03(default) | 25*80 | COLOR | 16 |
07 | 25*80 | MONOCHROME | -- |
**Attribute
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
BL | R | G | B | I | R | G | B |
BACKGROUND | FOREGROUND |
BL & I
are usually zero.
Black foreground and
blue background the attribute should be 10h.