reg | value | descr |
---|---|---|
AH | 0x10 | |
AL | var. | sub function |
AL | Descr |
---|---|
00 | set individual palette register |
01 | set border color (overscan register) |
02 | set all palette registers and border |
03 | toggle intensity/blinking (EGA) |
07 | read palette register (PS/2) |
08 | read border color (overscan register, PS/2) |
09 | read palette registers and border (PS/2) |
10 | set DAC color register |
12 | set block of DAC color registers |
13 | set attribute controller color select state |
15 | read DAC color register (PS/2) |
17 | read block of DAC color registers |
18 | update video DAC mask register |
19 | read video DAC mask register |
1A | read color page state |
1B | sum color values to shades of gray |
BH | color value |
BL | palette register |
BH | color value |
ES:DX | pointer to 17 byte table representing 16 palette registers and border color register |
BL | 0 enable intensity 1 enable blinking |
BL | palette register to read (0-15) |
on return:
BH | value of palette register |
on return:
BH | value of border color (overscan register) |
ES:DX | pointer to 17 byte table representing 16 palette registers and border color register |
on return:
ES:DX | pointer to table provided as input |
BX | color register to set |
CH | green value |
CL | blue value |
DH | red value |
BX | first color register to set |
CX | number of color registers to set |
ES:DX | pointer to table of color values to set |
BL | 0 set Mode Control register bit 7 BH = value for bit 7 |
BL | 1 set color select register BH = value for color select register |
BX | color register to read |
on return:
CH | green value |
CL | blue value |
DH | red value |
BX | first color register to read |
CX | number of color registers to read |
ES:DX | pointer to buffer for color registers |
on return:
ES:DX | pointer to color table provided as input |
BL | new mask |
on return:
BL | value read from video DAC mask register |
BL | bit 7 of Mode Control Register |
BH | bits 2 thru 3 of Color select register if BL = 0 bits 0 thru 3 of Color select register if BL = 1 |
on return:
BL | current paging mode |
CX | current page |
BX | first color register to sum |
CX | number of color registers to sum |
nothing