mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Init cleanups and gnet fix
This commit is contained in:
parent
11daee9c80
commit
26ba4a362e
@ -225,6 +225,17 @@ void mn10200_device::device_start()
|
||||
save_item(NAME(m_port[i].dir), i);
|
||||
}
|
||||
|
||||
// registering reads the value, so clear it before
|
||||
m_pc = 0;
|
||||
m_mdr = 0;
|
||||
m_nmicr = 0;
|
||||
m_iagr = 0;
|
||||
for (int i=0; i != 4; i++)
|
||||
{
|
||||
m_d[i] = 0;
|
||||
m_a[i] = 0;
|
||||
}
|
||||
|
||||
// register for debugger
|
||||
state_add( MN10200_PC, "PC", m_pc ).mask(0xffffff).formatstr("%06X");
|
||||
state_add( MN10200_MDR, "MDR", m_mdr).formatstr("%04X");
|
||||
|
@ -1982,6 +1982,10 @@ void psxcpu_device::device_start()
|
||||
state_add( PSXCPU_CP2CR30, "zsf4", m_gte.m_cp2cr[ 30 ].d );
|
||||
state_add( PSXCPU_CP2CR31, "flag", m_gte.m_cp2cr[ 31 ].d );
|
||||
|
||||
// initialize the registers once
|
||||
for(int i=0; i != 32; i++)
|
||||
m_r[i] = 0;
|
||||
|
||||
// set our instruction counter
|
||||
set_icountptr(m_icount);
|
||||
|
||||
|
@ -160,7 +160,7 @@ void taito_pccard1_device::write_reg(offs_t offset, uint16_t data, uint16_t mem_
|
||||
{
|
||||
uint8_t v = data;
|
||||
int pos = offset - 0x280;
|
||||
uint8_t k = pos < sizeof(m_key) ? m_key[pos] : 0;
|
||||
uint8_t k = pos < m_key.size() ? m_key[pos] : 0;
|
||||
|
||||
// TODO: find out if unlocking the key then using an incorrect key will re-lock the card.
|
||||
if (v == k)
|
||||
|
@ -121,6 +121,8 @@ void cat702_device::device_start()
|
||||
m_dataout_handler.resolve_safe();
|
||||
|
||||
save_item(NAME(m_select));
|
||||
save_item(NAME(m_clock));
|
||||
save_item(NAME(m_datain));
|
||||
save_item(NAME(m_state));
|
||||
save_item(NAME(m_bit));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user