From 1c72bd23a85db778ef5a41cdd6da2081c3f28aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Mon, 30 Jan 2017 21:24:45 +0100 Subject: [PATCH] More meaningful comments. --- src/instruction.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/instruction.c b/src/instruction.c index 7f5303e..62e5c52 100644 --- a/src/instruction.c +++ b/src/instruction.c @@ -211,7 +211,11 @@ instruction_data_write_1(rk65c02emu_t *e, instrdef_t *id, instruction_t *i, uint e->regs.A = val; break; case ZPR: - /* XXX */ + /* + * This mode is special as both operands have separate meaning. + * Handled withing emulation, as it is used only by BBS and BBR. + */ + assert(false); break; case IMMEDIATE: case RELATIVE: @@ -281,7 +285,12 @@ instruction_data_read_1(rk65c02emu_t *e, instrdef_t *id, instruction_t *i) rv = bus_read_1(e->bus, (i->op1 + (i->op2 << 8)) + e->regs.Y); break; case ZPR: - /* XXX */ + /* + * This mode is special as both operands have separate meaning. + * Handled withing emulation, as it is used only by BBS and BBR. + */ + assert(false); + break; case IABSOLUTE: case IABSOLUTEX: case RELATIVE: