From bc8b0b09068e72550db5a93c21c5ad2bf3f51908 Mon Sep 17 00:00:00 2001 From: Takashi Toyoshima Date: Sun, 7 Dec 2014 13:35:20 +0900 Subject: [PATCH] Bug fux: absolute and absolute indexed didn't increment PC correctly --- 6502.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/6502.S b/6502.S index b887e06..35fc463 100644 --- a/6502.S +++ b/6502.S @@ -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