From 646c7d1905d7d5eb37f4bbf6696faf7abda98896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Fri, 27 Jan 2017 11:03:50 +0100 Subject: [PATCH] Some opcodes also write data to accumulator. --- src/instruction.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/instruction.c b/src/instruction.c index 073863c..054e1ff 100644 --- a/src/instruction.c +++ b/src/instruction.c @@ -207,9 +207,12 @@ instruction_data_write_1(rk65c02emu_t *e, instrdef_t *id, instruction_t *i, uint case ABSOLUTEY: bus_write_1(e->bus, (i->op1 + (i->op2 << 8)) + e->regs.Y, val); break; + case ACCUMULATOR: + e->regs.A = val; + break; case ZPR: /* XXX */ - case ACCUMULATOR: + break; case IMMEDIATE: case RELATIVE: case IABSOLUTE: