C64 code update

This commit is contained in:
Pecusx
2023-11-08 11:24:35 +01:00
parent dfef25c7b2
commit 19caf28ac5
2 changed files with 11 additions and 0 deletions
+11
View File
@@ -30,6 +30,17 @@
rts
.endp
;--------------------------------------------------
.proc WaitForLongPress
;--------------------------------------------------
lda #0
sta pressTimer ; reset
jsr WaitForKeyRelease.StillWait
lda pressTimer
cmp #25 ; 1/2s
rts ; if CARRY is set then long press
.endp
;--------------------------------------------------
.proc WaitForKeyRelease
;--------------------------------------------------