mirror of
https://github.com/toyoshim/Applerm-II.git
synced 2024-05-31 15:41:29 +00:00
Bug fux: absolute and absolute indexed didn't increment PC correctly
This commit is contained in:
parent
7370d07645
commit
bc8b0b0906
4
6502.S
4
6502.S
|
@ -111,7 +111,7 @@
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro _fromAbsb
|
.macro _fromAbsb
|
||||||
adds PC, PC, #1
|
adds PC, PC, #2
|
||||||
mov r0, PC
|
mov r0, PC
|
||||||
_ldw
|
_ldw
|
||||||
mov ADDR, r0
|
mov ADDR, r0
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro _fromAbsoluteIndexed reg
|
.macro _fromAbsoluteIndexed reg
|
||||||
adds PC, PC, #1
|
adds PC, PC, #2
|
||||||
mov r0, PC
|
mov r0, PC
|
||||||
_ldw
|
_ldw
|
||||||
add r0, r0, \reg
|
add r0, r0, \reg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user