summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/seibuspi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/seibuspi.cpp')
-rw-r--r--src/mame/drivers/seibuspi.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/seibuspi.cpp b/src/mame/drivers/seibuspi.cpp
index 9290d6d2514..56476ebf8d8 100644
--- a/src/mame/drivers/seibuspi.cpp
+++ b/src/mame/drivers/seibuspi.cpp
@@ -1895,11 +1895,11 @@ MACHINE_CONFIG_START(seibuspi_state::spi)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 6144)
- MCFG_DEVICE_ADD("crtc", SEIBU_CRTC, 0)
- MCFG_SEIBU_CRTC_DECRYPT_KEY_CB(WRITE16(*this, seibuspi_state, tile_decrypt_key_w))
- MCFG_SEIBU_CRTC_LAYER_EN_CB(WRITE16(*this, seibuspi_state, spi_layer_enable_w))
- MCFG_SEIBU_CRTC_REG_1A_CB(WRITE16(*this, seibuspi_state, spi_layer_bank_w))
- MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(*this, seibuspi_state, scroll_w))
+ seibu_crtc_device &crtc(SEIBU_CRTC(config, "crtc", 0));
+ crtc.decrypt_key_callback().set(FUNC(seibuspi_state::tile_decrypt_key_w));
+ crtc.layer_en_callback().set(FUNC(seibuspi_state::spi_layer_enable_w));
+ crtc.reg_1a_callback().set(FUNC(seibuspi_state::spi_layer_bank_w));
+ crtc.layer_scroll_callback().set(FUNC(seibuspi_state::scroll_w));
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
@@ -2021,11 +2021,11 @@ MACHINE_CONFIG_START(seibuspi_state::sys386i)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 6144)
- MCFG_DEVICE_ADD("crtc", SEIBU_CRTC, 0)
- MCFG_SEIBU_CRTC_DECRYPT_KEY_CB(WRITE16(*this, seibuspi_state, tile_decrypt_key_w))
- MCFG_SEIBU_CRTC_LAYER_EN_CB(WRITE16(*this, seibuspi_state, spi_layer_enable_w))
- MCFG_SEIBU_CRTC_REG_1A_CB(WRITE16(*this, seibuspi_state, spi_layer_bank_w))
- MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(*this, seibuspi_state, scroll_w))
+ seibu_crtc_device &crtc(SEIBU_CRTC(config, "crtc", 0));
+ crtc.decrypt_key_callback().set(FUNC(seibuspi_state::tile_decrypt_key_w));
+ crtc.layer_en_callback().set(FUNC(seibuspi_state::spi_layer_enable_w));
+ crtc.reg_1a_callback().set(FUNC(seibuspi_state::spi_layer_bank_w));
+ crtc.layer_scroll_callback().set(FUNC(seibuspi_state::scroll_w));
/* sound hardware */
SPEAKER(config, "mono").front_center();