mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
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:
parent
3245af3747
commit
1906406e3d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user