diff options
Diffstat (limited to 'src/mame/drivers/tonton.cpp')
-rw-r--r-- | src/mame/drivers/tonton.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/tonton.cpp b/src/mame/drivers/tonton.cpp index 72876e96a9d..d6edb8964df 100644 --- a/src/mame/drivers/tonton.cpp +++ b/src/mame/drivers/tonton.cpp @@ -223,9 +223,9 @@ WRITE8_MEMBER(tonton_state::ay_bout_w) MACHINE_CONFIG_START(tonton_state::tonton) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu",Z80, CPU_CLOCK) /* Guess. According to other MSX2 based gambling games */ - MCFG_CPU_PROGRAM_MAP(tonton_map) - MCFG_CPU_IO_MAP(tonton_io) + MCFG_DEVICE_ADD("maincpu",Z80, CPU_CLOCK) /* Guess. According to other MSX2 based gambling games */ + MCFG_DEVICE_PROGRAM_MAP(tonton_map) + MCFG_DEVICE_IO_MAP(tonton_io) MCFG_NVRAM_ADD_0FILL("nvram") @@ -239,7 +239,7 @@ MACHINE_CONFIG_START(tonton_state::tonton) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("aysnd", YM2149, YM2149_CLOCK) /* Guess. According to other MSX2 based gambling games */ + MCFG_DEVICE_ADD("aysnd", YM2149, YM2149_CLOCK) /* Guess. According to other MSX2 based gambling games */ /* AY8910: Port A out: FF AY8910: Port B out: FF @@ -248,8 +248,8 @@ MACHINE_CONFIG_START(tonton_state::tonton) AY8910: Port A out: 00 AY8910: Port B out: 00 */ - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(tonton_state, ay_aout_w)) /* Write all bits twice, and then reset them at boot */ - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(tonton_state, ay_bout_w)) /* Write all bits twice, and then reset them at boot */ + MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, tonton_state, ay_aout_w)) /* Write all bits twice, and then reset them at boot */ + MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, tonton_state, ay_bout_w)) /* Write all bits twice, and then reset them at boot */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70) MACHINE_CONFIG_END |