Bug fux: absolute and absolute indexed didn't increment PC correctly

This commit is contained in:
Takashi Toyoshima 2014-12-07 13:35:20 +09:00
parent 7370d07645
commit bc8b0b0906

4
6502.S
View File

@ -111,7 +111,7 @@
.endm
.macro _fromAbsb
adds PC, PC, #1
adds PC, PC, #2
mov r0, PC
_ldw
mov ADDR, r0
@ -119,7 +119,7 @@
.endm
.macro _fromAbsoluteIndexed reg
adds PC, PC, #1
adds PC, PC, #2
mov r0, PC
_ldw
add r0, r0, \reg