fixed improper ASR usage
This commit is contained in:
1 parent
8580a918e2
commit
21bc00138a
1 file changed
+3
-2
@@ -48,7 +48,7 @@ m65_scnkey_loop:
|
|||||||
m65_scnkey_shflag_loop:
|
m65_scnkey_shflag_loop:
|
||||||
|
|
||||||
inx
|
inx
|
||||||
asr
|
asr ; ASR preserves most significant bit, but in our case it is 0
|
||||||
bcc m65_scnkey_shflag_next
|
bcc m65_scnkey_shflag_next
|
||||||
|
|
||||||
; Bucky key pressed
|
; Bucky key pressed
|
||||||
@@ -98,7 +98,8 @@ m65_scnkey_loop_2:
|
|||||||
iny
|
iny
|
||||||
pla
|
pla
|
||||||
beq m65_scnkey_next_1
|
beq m65_scnkey_next_1
|
||||||
asr
|
clc
|
||||||
|
ror ; can't use ASR here, as it preserves most significant bit
|
||||||
pha
|
pha
|
||||||
bcc m65_scnkey_loop_2
|
bcc m65_scnkey_loop_2
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user