fixed logic

now jumping to numbers if eax = 0 instead of != 1
This commit is contained in:
2023-05-12 12:42:24 +02:00
parent 6a8edc6f47
commit 791dc10a3e

View File

@@ -33,8 +33,8 @@ add a1, 1 ; i++
push a1 ; arg 1 (vKey)
call GetAsyncKeyState
and eax, 32768 ; 0x8000 but i haven't implemented hex yet
cmp eax, 1
jne numbers ; if GetAsyncKeyState was false, jump to numbers
cmp eax, 0
je numbers ; if GetAsyncKeyState was false, jump to numbers
mov a2, a1 ; necessary ?
push "%c" ; push format