adb.s: keep events from messing up neighbor keys in the array

This commit is contained in:
dwsJason 2018-08-19 13:23:42 -04:00
parent 1b2f2d3eff
commit 83ad296ea3
1 changed files with 6 additions and 5 deletions

View File

@ -171,11 +171,12 @@ SRMerge1 phx ; Save 2nd
jsr ProcessReset
* Update the key states
* sta >$400
jsr PostIt
plx ; Get 2nd
pha ; save new #1
txa
* sta >$480
jsr PostIt
plx
pha
@ -200,8 +201,8 @@ SRMerge1 phx ; Save 2nd
longi on
PostIt pha ; Save Key
* sep #$20
* longa off
sep #$20
longa off
cmp #$80 ; set/clear c
and #$7f ; keycode idx
tax
@ -209,8 +210,8 @@ PostIt pha ; Save Key
rol a ; key state
eor #$01 ; 0 for key up
sta KeyArray,x
* rep #$30
* longa on
rep #$30
longa on
pla
rts