(MESS) xor100.c: Restore banks after load (nw)

This commit is contained in:
Wilbert Pol 2014-07-29 15:48:59 +00:00
parent 3a6f292084
commit 30a9f68665
2 changed files with 9 additions and 0 deletions

View File

@ -485,6 +485,8 @@ void xor100_state::machine_start()
membank("bank3")->configure_entry(0, rom);
membank("bank3")->configure_entries(1, banks, ram + 0xf800, 0x10000);
machine().save().register_postload(save_prepost_delegate(FUNC(xor100_state::post_load), this));
/* register for state saving */
save_item(NAME(m_mode));
save_item(NAME(m_bank));
@ -492,6 +494,7 @@ void xor100_state::machine_start()
save_item(NAME(m_fdc_drq));
save_item(NAME(m_fdc_dden));
save_item(NAME(m_centronics_busy));
save_item(NAME(m_centronics_select));
}
void xor100_state::machine_reset()
@ -501,6 +504,11 @@ void xor100_state::machine_reset()
bankswitch();
}
void xor100_state::post_load()
{
bankswitch();
}
/* Machine Driver */
static MACHINE_CONFIG_START( xor100, xor100_state )

View File

@ -80,6 +80,7 @@ public:
void fdc_drq_w(bool state);
void bankswitch();
void post_load();
// memory state
int m_mode;