[SHIFT] bug #61
This commit is contained in:
+12
-4
@@ -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
Binary file not shown.
Reference in New Issue
Block a user