diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-02-21 20:21:34 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-02-21 20:23:44 -0500 |
commit | f130cebbc2a5d94cfdcbd4a701c5d76dce4fb0b3 (patch) | |
tree | bde3732fa52365b2409eaf59a680f30498941fc7 | |
parent | d41f52fef936c016a19f1d0403115dffa97483fb (diff) |
upd78k3d: Fix disassembly of 01-prefixed SFR + immediate word/byte instructions (nw)
-rw-r--r-- | src/devices/cpu/upd78k/upd78k3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/upd78k/upd78k3d.cpp b/src/devices/cpu/upd78k/upd78k3d.cpp index b7540b950c9..28f19d5f735 100644 --- a/src/devices/cpu/upd78k/upd78k3d.cpp +++ b/src/devices/cpu/upd78k/upd78k3d.cpp @@ -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]); format_sfrp(stream, opcodes.r8(pc + 2)); stream << ","; - format_imm16(stream, opcodes.r8(pc + 3)); + format_imm16(stream, opcodes.r16(pc + 3)); return 5 | SUPPORTED; } 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) { - 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)); stream << ","; format_imm8(stream, opcodes.r8(pc + 3)); |