diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-03-28 20:27:57 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-03-28 20:27:57 -0400 |
commit | 238faed233ab2113c1751bc95ffa0d0202beba41 (patch) | |
tree | 1bb0cccb7b11bbf6d95edaf3f9d5f8013fc7a8b2 | |
parent | d66b62fbb76480636c7b130ddae70ecc094cb29a (diff) |
upd78k3: Fix disassembly of MOV A, !addr16
-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 aa33fd0ab77..009a21aa929 100644 --- a/src/devices/cpu/upd78k/upd78k3d.cpp +++ b/src/devices/cpu/upd78k/upd78k3d.cpp @@ -476,10 +476,10 @@ offs_t upd78k3_disassembler::dasm_09xx(std::ostream &stream, u8 op2, offs_t pc, else if ((op2 & 0xfe) == 0xf0) { util::stream_format(stream, "%-8s", "MOV"); - if (!BIT(op2, 4)) + if (!BIT(op2, 0)) stream << "A,"; format_abs16(stream, opcodes.r16(pc + 2)); - if (BIT(op2, 4)) + if (BIT(op2, 0)) stream << ",A"; return 4 | SUPPORTED; } |