mirror of
https://github.com/holub/mame
synced 2025-10-08 09:30:17 +03:00
(MESS) xor100.c: Restore banks after load (nw)
This commit is contained in:
parent
3a6f292084
commit
30a9f68665
@ -485,6 +485,8 @@ void xor100_state::machine_start()
|
|||||||
membank("bank3")->configure_entry(0, rom);
|
membank("bank3")->configure_entry(0, rom);
|
||||||
membank("bank3")->configure_entries(1, banks, ram + 0xf800, 0x10000);
|
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 */
|
/* register for state saving */
|
||||||
save_item(NAME(m_mode));
|
save_item(NAME(m_mode));
|
||||||
save_item(NAME(m_bank));
|
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_drq));
|
||||||
save_item(NAME(m_fdc_dden));
|
save_item(NAME(m_fdc_dden));
|
||||||
save_item(NAME(m_centronics_busy));
|
save_item(NAME(m_centronics_busy));
|
||||||
|
save_item(NAME(m_centronics_select));
|
||||||
}
|
}
|
||||||
|
|
||||||
void xor100_state::machine_reset()
|
void xor100_state::machine_reset()
|
||||||
@ -501,6 +504,11 @@ void xor100_state::machine_reset()
|
|||||||
bankswitch();
|
bankswitch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void xor100_state::post_load()
|
||||||
|
{
|
||||||
|
bankswitch();
|
||||||
|
}
|
||||||
|
|
||||||
/* Machine Driver */
|
/* Machine Driver */
|
||||||
|
|
||||||
static MACHINE_CONFIG_START( xor100, xor100_state )
|
static MACHINE_CONFIG_START( xor100, xor100_state )
|
||||||
|
@ -80,6 +80,7 @@ public:
|
|||||||
void fdc_drq_w(bool state);
|
void fdc_drq_w(bool state);
|
||||||
|
|
||||||
void bankswitch();
|
void bankswitch();
|
||||||
|
void post_load();
|
||||||
|
|
||||||
// memory state
|
// memory state
|
||||||
int m_mode;
|
int m_mode;
|
||||||
|
Loading…
Reference in New Issue
Block a user