mirror of
https://github.com/toyoshim/Applerm-II.git
synced 2024-06-06 08:29:28 +00:00
Bug fix on sbc, C was reversed, and result was not stored on V=0
This commit is contained in:
parent
8ff302aaf0
commit
c3c8eafc07
3
6502.S
3
6502.S
|
@ -605,7 +605,7 @@
|
||||||
__se FLAG_N
|
__se FLAG_N
|
||||||
1:
|
1:
|
||||||
lsrs r1, r1, #17
|
lsrs r1, r1, #17
|
||||||
bcc 1f
|
bcs 1f
|
||||||
__se FLAG_C
|
__se FLAG_C
|
||||||
1:
|
1:
|
||||||
mov r1, RA
|
mov r1, RA
|
||||||
|
@ -615,6 +615,7 @@
|
||||||
lsrs r0, r0, #8
|
lsrs r0, r0, #8
|
||||||
bcc 1f
|
bcc 1f
|
||||||
__se FLAG_V
|
__se FLAG_V
|
||||||
|
1:
|
||||||
mov RA, r2
|
mov RA, r2
|
||||||
adds PC, PC, #1
|
adds PC, PC, #1
|
||||||
.endm
|
.endm
|
||||||
|
|
Loading…
Reference in New Issue
Block a user