diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-04-19 20:59:50 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-04-19 20:59:50 +0000 |
commit | 776d29c90f2a6c3c234597eb950410b95c5addec (patch) | |
tree | 47910b6c5d91a3402e9eae266ba6b5a2dc8d19e1 /src/mame/drivers/1942.c | |
parent | b5b7808cb787ea3191c1f13352d954a77320618c (diff) |
Memory banks are now device-relative only. Global lookups
are private. Renamed device_t::subbank to device_t::membank
and updated a few remaining users of the global lookup.
Diffstat (limited to 'src/mame/drivers/1942.c')
-rw-r--r-- | src/mame/drivers/1942.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/1942.c b/src/mame/drivers/1942.c index cb845d72ccc..25040abf22c 100644 --- a/src/mame/drivers/1942.c +++ b/src/mame/drivers/1942.c @@ -71,7 +71,7 @@ correctly. WRITE8_MEMBER(_1942_state::c1942_bankswitch_w) { - subbank("bank1")->set_entry(data & 0x03); + membank("bank1")->set_entry(data & 0x03); } static TIMER_DEVICE_CALLBACK( c1942_scanline ) @@ -506,7 +506,7 @@ ROM_END static DRIVER_INIT( 1942 ) { UINT8 *ROM = machine.region("maincpu")->base(); - machine.root_device().subbank("bank1")->configure_entries(0, 3, &ROM[0x10000], 0x4000); + machine.root_device().membank("bank1")->configure_entries(0, 3, &ROM[0x10000], 0x4000); } |