summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/pcfx.c
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2014-04-01 16:40:48 +0000
committer Ivan Vangelista <mesgnet@yahoo.it>2014-04-01 16:40:48 +0000
commit98fcb2739dc8ffaa5b60be2078be787a91b03c31 (patch)
treed35a8a0d7f4635b55fa2568c3f3b83a61c48d647 /src/mess/drivers/pcfx.c
parent6f17d6cfc77aef35970bdb25a48a1a261a45b439 (diff)
huc6270_device: converted to devcb2 (nw)
Diffstat (limited to 'src/mess/drivers/pcfx.c')
-rw-r--r--src/mess/drivers/pcfx.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/mess/drivers/pcfx.c b/src/mess/drivers/pcfx.c
index 766760df361..79b4c28072e 100644
--- a/src/mess/drivers/pcfx.c
+++ b/src/mess/drivers/pcfx.c
@@ -464,20 +464,6 @@ static const huc6261_interface pcfx_huc6261_config =
};
-static const huc6270_interface pcfx_huc6270_a_config =
-{
- 0x20000,
- DEVCB_DRIVER_LINE_MEMBER(pcfx_state, irq12_w)
-};
-
-
-static const huc6270_interface pcfx_huc6270_b_config =
-{
- 0x20000,
- DEVCB_DRIVER_LINE_MEMBER(pcfx_state, irq14_w)
-};
-
-
void pcfx_state::machine_reset()
{
membank( "bank1" )->set_base( memregion("user1")->base() );
@@ -503,8 +489,12 @@ static MACHINE_CONFIG_START( pcfx, pcfx_state )
MCFG_SCREEN_UPDATE_DRIVER(pcfx_state, screen_update)
MCFG_SCREEN_RAW_PARAMS(XTAL_21_4772MHz, HUC6261_WPF, 64, 64 + 1024 + 64, HUC6261_LPF, 18, 18 + 242)
- MCFG_HUC6270_ADD( "huc6270_a", pcfx_huc6270_a_config )
- MCFG_HUC6270_ADD( "huc6270_b", pcfx_huc6270_b_config )
+ MCFG_DEVICE_ADD( "huc6270_a", HUC6270, 0 )
+ MCFG_HUC6270_VRAM_SIZE(0x20000)
+ MCFG_HUC6270_IRQ_CHANGED_CB(WRITELINE(pcfx_state, irq12_w))
+ MCFG_DEVICE_ADD( "huc6270_b", HUC6270, 0 )
+ MCFG_HUC6270_VRAM_SIZE(0x20000)
+ MCFG_HUC6270_IRQ_CHANGED_CB(WRITELINE(pcfx_state, irq14_w))
MCFG_HUC6261_ADD( "huc6261", XTAL_21_4772MHz, pcfx_huc6261_config )
MCFG_HUC6272_ADD( "huc6272", XTAL_21_4772MHz )