diff options
author | 2012-09-13 11:15:32 +0000 | |
---|---|---|
committer | 2012-09-13 11:15:32 +0000 | |
commit | 219e664785890f52079bae7e74543920d638796a (patch) | |
tree | 774d1ab1e7d87ae4d2c1ef335dcef24a28a7d7e8 /src/mess/machine/mtx.c | |
parent | af9a5e817d3eefdda79e801056b29167ecbcdef9 (diff) |
Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew)
Diffstat (limited to 'src/mess/machine/mtx.c')
-rw-r--r-- | src/mess/machine/mtx.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/mess/machine/mtx.c b/src/mess/machine/mtx.c index aeb787fc7d6..f9f868b04a8 100644 --- a/src/mess/machine/mtx.c +++ b/src/mess/machine/mtx.c @@ -372,29 +372,28 @@ SNAPSHOT_LOAD( mtx ) MACHINE_START( mtx512 ) -------------------------------------------------*/ -MACHINE_START( mtx512 ) +MACHINE_START_MEMBER(mtx_state,mtx512) { - mtx_state *state = machine.driver_data<mtx_state>(); - ram_device *messram = machine.device<ram_device>(RAM_TAG); + ram_device *messram = machine().device<ram_device>(RAM_TAG); /* find devices */ - state->m_z80ctc = machine.device<z80ctc_device>(Z80CTC_TAG); - state->m_z80dart = machine.device(Z80DART_TAG); - state->m_cassette = machine.device<cassette_image_device>(CASSETTE_TAG); + m_z80ctc = machine().device<z80ctc_device>(Z80CTC_TAG); + m_z80dart = machine().device(Z80DART_TAG); + m_cassette = machine().device<cassette_image_device>(CASSETTE_TAG); /* configure memory */ - state->membank("bank1")->set_base(machine.root_device().memregion("user1")->base()); - state->membank("bank2")->configure_entries(0, 8, state->memregion("user2")->base(), 0x2000); - state->membank("bank3")->configure_entries(0, messram->size()/0x4000/2, messram->pointer(), 0x4000); - state->membank("bank4")->configure_entries(0, messram->size()/0x4000/2, messram->pointer() + messram->size()/2, 0x4000); + membank("bank1")->set_base(machine().root_device().memregion("user1")->base()); + membank("bank2")->configure_entries(0, 8, memregion("user2")->base(), 0x2000); + membank("bank3")->configure_entries(0, messram->size()/0x4000/2, messram->pointer(), 0x4000); + membank("bank4")->configure_entries(0, messram->size()/0x4000/2, messram->pointer() + messram->size()/2, 0x4000); } /*------------------------------------------------- MACHINE_RESET( mtx512 ) -------------------------------------------------*/ -MACHINE_RESET( mtx512 ) +MACHINE_RESET_MEMBER(mtx_state,mtx512) { /* bank switching */ - bankswitch(machine, 0); + bankswitch(machine(), 0); } |