mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
fixed save state issue (no whatsnew)
This commit is contained in:
parent
20cd9c4474
commit
673d54dd64
@ -182,7 +182,7 @@ MACHINE_START_MEMBER(kangaroo_state,kangaroo_mcu)
|
||||
{
|
||||
kangaroo_state::machine_start();
|
||||
machine().device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xef00, 0xefff, read8_delegate(FUNC(kangaroo_state::mcu_sim_r),this), write8_delegate(FUNC(kangaroo_state::mcu_sim_w),this));
|
||||
save_item(NAME(m_clock));
|
||||
save_item(NAME(m_mcu_clock));
|
||||
}
|
||||
|
||||
|
||||
@ -202,7 +202,7 @@ void kangaroo_state::machine_reset()
|
||||
/* properly starts. */
|
||||
machine().device("maincpu")->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
|
||||
|
||||
m_clock = 0;
|
||||
m_mcu_clock = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -219,7 +219,7 @@ void kangaroo_state::machine_reset()
|
||||
|
||||
READ8_MEMBER(kangaroo_state::mcu_sim_r)
|
||||
{
|
||||
return ++m_clock & 0x0f;
|
||||
return ++m_mcu_clock & 0x0f;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(kangaroo_state::mcu_sim_w)
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
UINT32 *m_videoram;
|
||||
|
||||
/* misc */
|
||||
UINT8 m_clock;
|
||||
UINT8 m_mcu_clock;
|
||||
DECLARE_READ8_MEMBER(mcu_sim_r);
|
||||
DECLARE_WRITE8_MEMBER(mcu_sim_w);
|
||||
DECLARE_WRITE8_MEMBER(kangaroo_coin_counter_w);
|
||||
|
Loading…
Reference in New Issue
Block a user