Hi, the colors are all encoded in the attribute byte!
B F F F I T T T thats what it looks like.
B bit = 1 will make character blink
F F F = defines the background color
I bit = is the intensisty bit, 1 will make the character bright
T T T = defines the TEXT color.
so as numbers
128 (10000000) is for blink on
0 (00000000) is the 1st background color (black)
16 (00010000) is the 2nd background color(blue)
32 (00100000) is the 3rd backgroung color
and so on they are 8 background colors(0 to 7*16) and 16 text (colors 0 to 15)
0 being Black and 15 being White
so to get what you want, after defining constants for each background color and text color and the blink bit
if you want a blinking white character on a blue background you will have to OR the constants together to get the desired attribute byte
ie
in C code will be
attribute=BLINK |TEXT_WHITE |BACK_BLUE;
in asm
mov ax,BLINK
or ax,TEXT_WHITE
or ax,BACK_BLUE
hope this helps!
