Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 3

GetColor

Function number: 03

Returns the current drawing, text, or background color.

Register entry values

AX = EE03
BX = Color type
  01 = Return drawing color
  02 = Return text color
  03 = Return background color

Register exit values

CX = Color

Example

MOV     AX,0EE03H       ;Get color function
MOV BX,3 ;Return current background color
INT 10H ;Call GRAFIX
MOV [BColor],CX ;Store current background color

Comments

None