From 96393257a43ac52f2b911594d106741245dec5f0 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 4 Dec 2020 15:20:28 -0500 Subject: - Started work on writing the new version of the assembler. - Did alot of stuff in the emulator. - Did alot of stuff in the SuB Suite. --- disasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'disasm.c') diff --git a/disasm.c b/disasm.c index 8c16db6..f9a04a2 100644 --- a/disasm.c +++ b/disasm.c @@ -38,7 +38,7 @@ void disasm(struct sux *cpu, uint8_t lines, uint8_t opcode, uint8_t prefix, uint mask.u64 = 0; const char *inst_name; uint8_t inst_type; - if ((ext_prefix & 0xD) == 0xD) { + if ((ext_prefix & 0xF) == 0xD) { switch (ext_prefix >> 4) { case 0x0: inst_name = ext_opname[opcode]; inst_type = ext_optype[opcode]; break; } @@ -104,9 +104,9 @@ void disasm(struct sux *cpu, uint8_t lines, uint8_t opcode, uint8_t prefix, uint value = (sign[0] == '-') ? (~value + 1) & mask.u64 : value; } switch (inst_type) { - case EIND : case BREG : case IMPL : wprintw(scr, "%s%s" , inst_name, postfix); break; + case EIND : wprintw(scr, "%s%s (E)" , op, postfix); break; case IMM : wprintw(scr, "%s%s #$%0*"PRIX64 , op, postfix, (addrsize+1) << 1, value); break; case AIND : case AINDX: -- cgit v1.2.3-13-gbd6f