Bug fix: absolute and absolute indexed fetched wrong address

This commit is contained in:
Takashi Toyoshima 2014-12-07 15:15:06 +09:00
parent c5d69f2c14
commit e419d9da69
1 changed files with 2 additions and 2 deletions

4
6502.S
View File

@ -120,7 +120,7 @@
.macro _fromAbsb
adds PC, PC, #2
mov r0, PC
subs r0, PC, #1
_ldw
mov ADDR, r0
_ldb
@ -128,7 +128,7 @@
.macro _fromAbsoluteIndexed reg
adds PC, PC, #2
mov r0, PC
subs r0, PC, #1
_ldw
add r0, r0, \reg
mov ADDR, r0