heya,
i have a task to print a matrix in diff colors (depend on its content)


i have defined these folowing colors:
EMPTY_WHITE = 255
EMPTY_BLACK = 0
USED_BLACK = 65
USED_WHITE = 120

i have a simple gotoXY alike macro:
GOTOXY MACRO ROW,COL
PUSH AX
PUSH BX
PUSH DX
MOV AH,2
MOV BH,A_PAGE
MOV DH,ROW
MOV DL,COL
INT 10H
POP DX
POP BX
POP AX
ENDM

problems:
1. in winXP it seems that there is nothing drawn on the screen (xp denys the access to bios??)

2. it seems that when i try print the matrix in cubes colors (win98) the colors above aren't the one i see on the screen.

i use the INT 10h, 09h (9) 'Write Character and Attribute at Cursor' service to print a ' ' with 1 of the colors above...
anyone know why i get those side effects?
Posted on 2003-05-30 14:15:22 by wizzra
Did you set the VGA palette, If I recall correctly 0xFF is not white in the default VGA palette. You will have to make a custom palette as for WinXP, make sure u load AX with 0013h and call Int 10h b4 u do anything else. Also it may help to set up the app to start fullscreen.
Posted on 2003-05-31 15:49:06 by x86asm