From 0cbbce4eeb910bd69384eb017b4f7df067a8c52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Mon, 13 Feb 2017 09:37:11 +0100 Subject: [PATCH] Fix operands fetching for zero page relative addressing. --- src/instruction.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/instruction.c b/src/instruction.c index 68ad7e4..9ccd719 100644 --- a/src/instruction.c +++ b/src/instruction.c @@ -39,6 +39,7 @@ instruction_fetch(bus_t *b, uint16_t addr) case ABSOLUTEY: case IABSOLUTE: case IABSOLUTEX: + case ZPR: i.op1 = bus_read_1(b, addr+1); i.op2 = bus_read_1(b, addr+2); break;