upd78k3d: Fix disassembly of 01-prefixed SFR + immediate word/byte instructions (nw)

This commit is contained in:
AJR 2020-02-21 20:21:34 -05:00
parent d41f52fef9
commit f130cebbc2

View File

@ -154,7 +154,7 @@ offs_t upd78k3_disassembler::dasm_01xx(std::ostream &stream, u8 op2, offs_t pc,
util::stream_format(stream, "%-8s", s_16bit_ops[op2 & 0x03]); util::stream_format(stream, "%-8s", s_16bit_ops[op2 & 0x03]);
format_sfrp(stream, opcodes.r8(pc + 2)); format_sfrp(stream, opcodes.r8(pc + 2));
stream << ","; stream << ",";
format_imm16(stream, opcodes.r8(pc + 3)); format_imm16(stream, opcodes.r16(pc + 3));
return 5 | SUPPORTED; return 5 | SUPPORTED;
} }
else if (op2 == 0x1b) else if (op2 == 0x1b)
@ -177,7 +177,7 @@ offs_t upd78k3_disassembler::dasm_01xx(std::ostream &stream, u8 op2, offs_t pc,
} }
else if ((op2 & 0xf8) == 0x68) else if ((op2 & 0xf8) == 0x68)
{ {
util::stream_format(stream, "%-8sA,", s_alu_ops[op2 & 0x07]); util::stream_format(stream, "%-8s", s_alu_ops[op2 & 0x07]);
format_sfr(stream, opcodes.r8(pc + 2)); format_sfr(stream, opcodes.r8(pc + 2));
stream << ","; stream << ",";
format_imm8(stream, opcodes.r8(pc + 3)); format_imm8(stream, opcodes.r8(pc + 3));