diff options
author | Fabio Priuli <etabeta78@users.noreply.github.com> | 2011-11-18 21:59:52 +0000 |
---|---|---|
committer | Fabio Priuli <etabeta78@users.noreply.github.com> | 2011-11-18 21:59:52 +0000 |
commit | 48ab59f3444253ff7bfe7c4256ae2d7b2b3b6fca (patch) | |
tree | 75313c96f3a2ebb84c503106183502abc2bc9e3b /src/mame/drivers/bfm_sc5.c | |
parent | 31ada16ad2259df8b7401d1ebe238e973ce03a65 (diff) |
modernized address maps for most skeleton drivers [Fabio Priuli]
Diffstat (limited to 'src/mame/drivers/bfm_sc5.c')
-rw-r--r-- | src/mame/drivers/bfm_sc5.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/mame/drivers/bfm_sc5.c b/src/mame/drivers/bfm_sc5.c index be1cc089720..102b4cd5fd6 100644 --- a/src/mame/drivers/bfm_sc5.c +++ b/src/mame/drivers/bfm_sc5.c @@ -14,6 +14,8 @@ */ +#define ADDRESS_MAP_MODERN + #include "emu.h" #include "cpu/m68000/m68000.h" #include "bfm_sc45.h" @@ -22,12 +24,18 @@ class sc5_state : public driver_device { public: sc5_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag) { } - + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") + { } + +protected: + + // devices + required_device<cpu_device> m_maincpu; }; -static ADDRESS_MAP_START( sc5_map, AS_PROGRAM, 32 ) +static ADDRESS_MAP_START( sc5_map, AS_PROGRAM, 32, sc5_state ) AM_RANGE(0x00000000, 0x002fffff) AM_ROM AM_RANGE(0x01000000, 0x0100ffff) AM_RAM AM_RANGE(0x40000000, 0x40000fff) AM_RAM @@ -46,8 +54,6 @@ MACHINE_CONFIG_END - - ROM_START( sc5plays ) ROM_REGION( 0x400000, "maincpu", ROMREGION_ERASEFF ) ROM_LOAD16_BYTE( "95424604.lo", 0x00001, 0x080000, CRC(5246dbec) SHA1(427134776ec8301c2eaea0c998234dd439952749) ) |