[SHIFT] bug #61

This commit is contained in:
2022-05-21 19:21:42 -04:00
parent 661d4776c7
commit 5e476eb742
2 changed files with 12 additions and 4 deletions
+12 -4
View File
@@ -1165,18 +1165,20 @@ nextishigher
.endp .endp
;-------------------------------------------------- ;--------------------------------------------------
getkey .proc; waits for pressing a key and returns pressed value in A .proc getkey ; waits for pressing a key and returns pressed value in A
;-------------------------------------------------- ;--------------------------------------------------
jsr WaitForKeyRelease jsr WaitForKeyRelease
@ @
lda SKSTAT lda SKSTAT
cmp #$ff cmp #$ff
beq checkJoyGetKey ; key not pressed, check Joy beq checkJoyGetKey ; key not pressed, check Joy
cmp #$f7 ; SHIFT
beq checkJoyGetKey
mva #sfx_keyclick sfx_effect
lda kbcode lda kbcode
and #$3f ;CTRL and SHIFT ellimination and #$3f ;CTRL and SHIFT ellimination
rts bne getkeyend
checkJoyGetKey checkJoyGetKey
;------------JOY------------- ;------------JOY-------------
;happy happy joy joy ;happy happy joy joy
@@ -1187,13 +1189,19 @@ checkJoyGetKey
beq notpressedJoyGetKey beq notpressedJoyGetKey
tay tay
lda joyToKeyTable,y lda joyToKeyTable,y
rts bne getkeyend
notpressedJoyGetKey notpressedJoyGetKey
;fire ;fire
lda TRIG0S lda TRIG0S
bne @- bne @-
lda #$0c ;Return key lda #$0c ;Return key
getkeyend
mvx #sfx_keyclick sfx_effect
rts rts
.endp .endp
;-------------------------------------------------- ;--------------------------------------------------
getkeynowait .proc; getkeynowait .proc;
BIN
View File
Binary file not shown.