diff options
author | cam900 <dbtlrchl@naver.com> | 2018-11-23 16:47:41 +0900 |
---|---|---|
committer | cam900 <dbtlrchl@naver.com> | 2018-11-23 16:47:41 +0900 |
commit | 82dd9376168706dddd5bcf6fd400a7e4cf01227b (patch) | |
tree | 159555c1df919ce0fd7b85875042e9fd2f3285c1 /src/mame/drivers/powerins.cpp | |
parent | 25100fc16e132963b7848bbd8ae1431085bd02e5 (diff) |
nmk112.cpp : Remove MCFGs, Unnecessary arguments of CPU interface
Diffstat (limited to 'src/mame/drivers/powerins.cpp')
-rw-r--r-- | src/mame/drivers/powerins.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/powerins.cpp b/src/mame/drivers/powerins.cpp index f8d472f88d8..4a9f19b6d3d 100644 --- a/src/mame/drivers/powerins.cpp +++ b/src/mame/drivers/powerins.cpp @@ -37,6 +37,7 @@ TODO: #include "cpu/z80/z80.h" #include "cpu/m68000/m68000.h" #include "machine/gen_latch.h" +#include "machine/nmk112.h" #include "sound/okim6295.h" #include "sound/2203intf.h" #include "speaker.h" @@ -325,9 +326,9 @@ MACHINE_CONFIG_START(powerins_state::powerins) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("soundcpu", 0)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) - MCFG_DEVICE_ADD("nmk112", NMK112, 0) - MCFG_NMK112_ROM0("oki1") - MCFG_NMK112_ROM1("oki2") + nmk112_device &nmk112(NMK112(config, "nmk112", 0)); + nmk112.set_rom0_tag("oki1"); + nmk112.set_rom1_tag("oki2"); MACHINE_CONFIG_END MACHINE_CONFIG_START(powerins_state::powerinsa) @@ -351,7 +352,7 @@ MACHINE_CONFIG_START(powerins_state::powerinsa) MCFG_DEVICE_REMOVE("oki2") MCFG_DEVICE_REMOVE("ym2203") - MCFG_DEVICE_REMOVE("nmk112") + config.device_remove("nmk112"); MACHINE_CONFIG_END MACHINE_CONFIG_START(powerins_state::powerinsb) |