mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
bcpdasm: Correct some instruction decodings and formats (nw)
dp8344: Tweak register display (nw)
This commit is contained in:
parent
930ff1e1c4
commit
a16e78a78b
@ -263,8 +263,9 @@ offs_t dp8344_disassembler::disassemble(std::ostream &stream, offs_t pc, const d
|
||||
// AC00-ADFF: XORA Rs,[mIr] (3 T-states)
|
||||
util::stream_format(stream, "%-8s", aop_to_string((inst & 0x0e00) >> 9));
|
||||
format_register(stream, inst & 0x001f);
|
||||
stream << ",";
|
||||
stream << ",[";
|
||||
format_modified_index_register(stream, (inst & 0x0060) >> 5, (inst & 0x0180) >> 7);
|
||||
stream << "]";
|
||||
}
|
||||
else if (!BIT(inst, 8))
|
||||
{
|
||||
@ -464,7 +465,7 @@ offs_t dp8344_disassembler::disassemble(std::ostream &stream, offs_t pc, const d
|
||||
// F400-F7FF: ORA Rs,Rd (2 T-states)
|
||||
// F800-FBFF: XORA Rs,Rd (2 T-states)
|
||||
// FC00-FFFF: MOVE Rs,Rd (2 T-states)
|
||||
util::stream_format(stream, "%-8s", aop_to_string((inst & 0x0e00) >> 9));
|
||||
util::stream_format(stream, "%-8s", aop_to_string((inst & 0x1c00) >> 10));
|
||||
format_register(stream, inst & 0x001f);
|
||||
stream << ",";
|
||||
format_register(stream, (inst & 0x03e0) >> 5);
|
||||
|
@ -154,6 +154,8 @@ void dp8344_device::device_start()
|
||||
state_add(STATE_GENPC, "GENPC", m_pc).noshow();
|
||||
state_add(STATE_GENPCBASE, "GENPCBASE", m_pc).noshow();
|
||||
state_add(STATE_GENFLAGS, "GENFLAGS", m_ccr).noshow();
|
||||
state_add(BCP_BA, "BA", m_ba);
|
||||
state_add(BCP_BB, "BB", m_bb);
|
||||
state_add(BCP_CCR, "CCR", m_ccr);
|
||||
state_add(BCP_NCF, "NCF", m_ncf);
|
||||
state_add(BCP_ICR, "ICR", m_icr);
|
||||
@ -182,9 +184,6 @@ void dp8344_device::device_start()
|
||||
state_add(BCP_ASP, "ASP", m_asp).mask(0xf);
|
||||
state_add(BCP_DSP, "DSP", m_dsp).mask(0xf);
|
||||
|
||||
state_add(BCP_BA, "BA", m_ba);
|
||||
state_add(BCP_BB, "BB", m_bb);
|
||||
|
||||
// save states
|
||||
save_item(NAME(m_pc));
|
||||
save_item(NAME(m_nmi_state));
|
||||
|
Loading…
Reference in New Issue
Block a user