From 56433e2ebe93786810edcf3b417095cd7c792c63 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Mon, 22 Jan 2018 12:31:19 -0600 Subject: [PATCH] Show nothing if no value is associated with an instruction --- src/mos6502.dis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mos6502.dis.c b/src/mos6502.dis.c index 126eb98..ea8af28 100644 --- a/src/mos6502.dis.c +++ b/src/mos6502.dis.c @@ -297,6 +297,7 @@ mos6502_dis_opcode(mos6502 *cpu, FILE *stream, int address) if (stream) { s_label[0] = '\0'; s_oper[0] = '\0'; + s_value[0] = '\0'; // Hey! We might have a label at this position in the code. If // so, let's print out the label.