summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bking.cpp')
-rw-r--r--src/mame/drivers/bking.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mame/drivers/bking.cpp b/src/mame/drivers/bking.cpp
index b5c7f43ef5d..d9344ee4259 100644
--- a/src/mame/drivers/bking.cpp
+++ b/src/mame/drivers/bking.cpp
@@ -415,20 +415,17 @@ MACHINE_CONFIG_START(bking_state::bking)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(bking_state, screen_update_bking)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, bking_state, screen_vblank_bking))
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_bking)
- MCFG_PALETTE_ADD("palette", 4*8+4*4+4*2+4*2)
- MCFG_PALETTE_INIT_OWNER(bking_state, bking)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_bking);
+ PALETTE(config, m_palette, FUNC(bking_state::bking_palette), 4*8 + 4*4 + 4*2 + 4*2);
/* sound hardware */
SPEAKER(config, "speaker").front_center();
- GENERIC_LATCH_8(config, m_soundlatch);
- m_soundlatch->data_pending_callback().set("soundnmi", FUNC(input_merger_device::in_w<0>));
+ GENERIC_LATCH_8(config, m_soundlatch).data_pending_callback().set(m_soundnmi, FUNC(input_merger_device::in_w<0>));
- MCFG_INPUT_MERGER_ALL_HIGH("soundnmi")
- MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_NMI))
+ INPUT_MERGER_ALL_HIGH(config, m_soundnmi).output_handler().set_inputline(m_audiocpu, INPUT_LINE_NMI);
AY8910(config, "ay1", XTAL(6'000'000)/4).add_route(ALL_OUTPUTS, "speaker", 0.25);