mirror of
https://github.com/toyoshim/Applerm-II.git
synced 2024-06-06 08:29:28 +00:00
Bug fix: absolute and absolute indexed fetched wrong address
This commit is contained in:
parent
c5d69f2c14
commit
e419d9da69
4
6502.S
4
6502.S
|
@ -120,7 +120,7 @@
|
||||||
|
|
||||||
.macro _fromAbsb
|
.macro _fromAbsb
|
||||||
adds PC, PC, #2
|
adds PC, PC, #2
|
||||||
mov r0, PC
|
subs r0, PC, #1
|
||||||
_ldw
|
_ldw
|
||||||
mov ADDR, r0
|
mov ADDR, r0
|
||||||
_ldb
|
_ldb
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
|
|
||||||
.macro _fromAbsoluteIndexed reg
|
.macro _fromAbsoluteIndexed reg
|
||||||
adds PC, PC, #2
|
adds PC, PC, #2
|
||||||
mov r0, PC
|
subs r0, PC, #1
|
||||||
_ldw
|
_ldw
|
||||||
add r0, r0, \reg
|
add r0, r0, \reg
|
||||||
mov ADDR, r0
|
mov ADDR, r0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user