Why does my code not register clicking the second button on screen?
I don't understand why pressing the second button doesn't work.
Here is my code for checking both presses:
proc whatPress
pusha
call setUpMagicNumbers
call startscreen
mov ax,00
int 33h
mov ax,01
int 33h
waitforpress:
;call Esc_end
mov ax, 3
int 33h
cmp cx, 112
jb waitforpress
cmp cx, 452
ja waitforpress
cmp dx, 81
jb waitforpress
cmp dx, 153
ja waitforpress
cmp bx, 1h
je startt
;-----------
check_second_button: ; Check for the second button press
cmp cx, 336
jb waitforpress
cmp cx, 624
ja waitforpress
cmp dx, 157
jb waitforpress
cmp dx, 198
ja waitforpress
cmp bx, 1h
je Rulejump
jmp waitforpress
startt:
mov ax,02
int 33h
call clean
call GamePlay
popa
ret
Rulejump:
call RuleWaitPress
popa
ret
endp whatPress