diff --git a/src/mess/drivers/xor100.c b/src/mess/drivers/xor100.c index 5104664b7e8..b8ed182138a 100644 --- a/src/mess/drivers/xor100.c +++ b/src/mess/drivers/xor100.c @@ -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 ) diff --git a/src/mess/includes/xor100.h b/src/mess/includes/xor100.h index 8a50cc09a5a..63a63a21ea3 100644 --- a/src/mess/includes/xor100.h +++ b/src/mess/includes/xor100.h @@ -80,6 +80,7 @@ public: void fdc_drq_w(bool state); void bankswitch(); + void post_load(); // memory state int m_mode;