Hey Im trying to understand the INT 10h, 13h (19) that writes a Character String with the BIOS interruption 10 with 13h in ah. I have found the info below about the differe
With int 10h
, the BL
register is used for the colour attributes.
Unless you're dealing with CGA, where the BL
value is the palette number, the BL
value is a number representing the foreground color (4 bits - low part) and the background color (4 bits - high part).
For instance, if you want a blue (0x01) background with red (0x04) text colour, you'll need to put 0x14
into the BL
register - in binary that is 00010100
.
0001 0100
|_ Background _| |_ Foreground _|
Colours are usually:
- Black 0x00
- Blue 0x01
- Green 0x02
- Cyan 0x03
- Red 0x04
- Magenta 0x05
- Brown 0x06
- LightGray 0x07
- DarkGray 0x08
- LightBlue 0x09
- LightGreen 0x0A
- LightCyan 0x0B
- LightRed 0x0C
- LightMagenta 0x0D
- LightBrown 0x0E
- White 0x0F