INT 10 - VIDEO - SET PALETTE REGISTERS (Jr, PS, TANDY  1000, EGA, VGA)    

Input

Output

AX

10h 00h Destroyed AX

BX

Colour Value Pal Reg Set Destroyed SP

CX

    Destroyed BP

DX

    Destroyed SI
ES:DI   Destroyed DI
Set Palette Register

        On MCGA, only BX = 0712h is supported.
Colour Value Layout
Bit Dec Hex  Description
0 1 01h  Blue
1 2 02h  Green
2 4 04h  Red
3 8 08h  Secondary Blue
4 16 10h  Secondary Green
5 32 20h  Secondary Red
6 64 40h  Reserved
7 128 80h  Reserved

 

Default Register Values

Register  Colour
00h  00h = Black
01h  01h = Blue
02h  02h = Green
03h  03h = Cyan
04h  04h = Red
05h  05h = Magenta
06h  14h = Brown
07h  07h = White
08h  38h = Dark Gray
09h  39h = Light Blue
0Ah  3Ah = Light Green
0Bh  3Bh = LIght Cyan
0Ch  3Ch = Light Red
0Dh  3Dh = Light Magenta
0Eh  3Eh = Yellow
0Fh  3Fh = Bright White

 

Input

Output

AX

10h 01h Destroyed AX

BX

 Colour Value   Destroyed SP

CX

    Destroyed BP

DX

    Destroyed SI
ES:DI   Destroyed DI
Set Border Color Register

Input

Output

AX

10h 02h Destroyed AX

BX

    Destroyed SP

CX

    Destroyed BP

 

    Destroyed SI
ES:DX  Pointer to Table Destroyed DI
Set All Palette Registers and Overscan

Table Format:   bytes 0 - 15 = values for palette registers 0 - 15
                     byte 16 = value for border color register

Input

Output

AX

10h 03h Destroyed AX

BX

  Flag Destroyed SP

CX

    Destroyed BP

DX

    Destroyed SI
ES:DI   Destroyed DI
Toggle Intensity / Blinking Bit

Flag:   0 = Enable Intensity
        1 = Enable Blinking


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .