English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi everyone.......i just want to ask for the code of colors....like for example 30 is blue...........color attribute

CLRSCRNPROC NEAR
MOV AX,0600H;Scroll full screen
MOV BH,30;color attribute
MOV CX,0000
MOV DX,184FH
INT 10H
RET
CLRSCRNENDP

2006-09-06 17:47:41 · 2 answers · asked by johnpaul 2 in Computers & Internet Programming & Design

2 answers

ya

2006-09-06 17:58:14 · answer #1 · answered by aadhunik.com social networking s 3 · 1 0

0=blk
1=blue
2=green
3=cyan
4=red
5=violet
6=yellow
7=white
8=grey
9=bright blue
a=bright green
b=bright cyan
c=bright red
d=bright violet
e=bright yellow
f=bright white
So the byte value in bh...in your case 30h makes the interupt10h have a screen area with a cyan background and if you had characters, they would be black. 30=cyan background and black foreground...3=cyan 0=blk

2006-09-06 18:18:01 · answer #2 · answered by ---=<cY?Er?u??>=--- 1 · 1 0

fedest.com, questions and answers