upd78k1/k2/k3 disassemblers: Fix branch destinations for A.n, X.n and PSW.n modes of BT(CLR) and BF(SET)

This commit is contained in:
AJR 2020-08-08 08:19:58 -04:00
parent 3245af3747
commit 1906406e3d
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ offs_t upd78k1_disassembler::dasm_02xx(std::ostream &stream, u8 op1, u8 op2, off
util::stream_format(stream, "%s.%d,", s_r_names[(op2 & 0x08) >> 3], op2 & 0x07);
else
util::stream_format(stream, "%s,", s_psw_bits[op2 & 0x07]);
format_jdisp8(stream, pc + 4, opcodes.r8(pc + 3));
format_jdisp8(stream, pc + 3, opcodes.r8(pc + 2));
return 3 | SUPPORTED;
}
else

View File

@ -234,7 +234,7 @@ offs_t upd78k3_disassembler::dasm_02xx(std::ostream &stream, u8 op1, u8 op2, off
util::stream_format(stream, "%c.%d,", BIT(op2, 3) ? 'A' : 'X', op2 & 0x07);
else
util::stream_format(stream, "%s,", m_psw_bits[op2 & 0x0f]);
format_jdisp8(stream, pc + 4, opcodes.r8(pc + 3));
format_jdisp8(stream, pc + 3, opcodes.r8(pc + 2));
return 3 | SUPPORTED;
}
else