The code allows the player to move the mouse and when the player press the left button he compares the color of the pressed pixel with red. int 10h, ah as 0d always returns 0 as the color of the pixel, what should i do?
mov ax, 0
int 33h
mov ax,1h
int 33h
check:
mov ax, 3
int 33h
cmp bx, 1
jne check
mov ax, 4
int 33h
xor ax, ax
mov ah, 0Dh
mov bh, 0
int 10h
cmp al, 0100b
je print_white_screen