fixed save state issue (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-09-14 09:12:29 +00:00
parent 20cd9c4474
commit 673d54dd64
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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);