Uploaded by Ianian Burila

EMU8086 Color code table

advertisement
HEXBINCOLOR
00000black
10001blue
20010green
30011cyan
40100red
50101magenta
60110brown
70111light gray
81000dark gray
91001light blue
A1010light green
B1011light cyan
C1100light red
D1101light magenta
E1110yellow
F1111white
;setting video mode
mov al, 03h
mov ah, 0
int 10h
;MAX SIZE
MOV AX, 0600H;CODE FOR THE COLORING
MOV BH, 47H;For Background Color
4 - Back Color
7 - Foreground(font) Color
MOV CH, 00H;GOTO(X, Y)COLUMN (Y)
MOV CL, 00H;GOTO(X, Y)ROW (X)
MOV DH, 20H;COLOR SHADING ROW (X)
MOV DL, 99H;COLOR SHADING COLUMN (Y)
INT 10H
;COLOR BLUE
MOV AX, 0600H;CODE FOR THE COLORING
MOV BH, 9FH;For Background Color
4 - Back Color
7 - Foreground(font) Color
MOV CH, 05H;GOTO(X, Y)COLUMN (Y);ROW/horizontal VALUE LOCATION
MOV CL, 20H;GOTO(X, Y)ROW (X);COLUMN/vertical VALUE LOCATION
MOV DH, 20H;COLOR SHADING ROW (X);SHADING TOP TO BOTTOM
MOV DL, 99H;COLOR SHADING COLUMN (Y);SHADING LEFT TO RIGHT
INT 10H
;SET CURSOR
MOV AH, 02H
MOV BH, 00;Page #(0...7)
MOV DH, 15;ROW/horizontal
MOV DL, 38;COLUMN/tabbing/spaces
INT 10H
Download