diff options
author | mooglyguy <therealmogminer@gmail.com> | 2018-09-06 20:04:41 +0200 |
---|---|---|
committer | mooglyguy <therealmogminer@gmail.com> | 2018-09-06 20:04:53 +0200 |
commit | 85699f365d6b694d581733df4c68e6366988bee7 (patch) | |
tree | c592e92305e5fbe077e1a42bde8964d9030b1510 /src/mame/drivers/pc1500.cpp | |
parent | 43cba38b7e3b19eb11d527dd4f86579df72fa1f8 (diff) |
-lh5810: De-MCFG, nw
Diffstat (limited to 'src/mame/drivers/pc1500.cpp')
-rw-r--r-- | src/mame/drivers/pc1500.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/pc1500.cpp b/src/mame/drivers/pc1500.cpp index 5c9bf79d7fe..52ba566fe6d 100644 --- a/src/mame/drivers/pc1500.cpp +++ b/src/mame/drivers/pc1500.cpp @@ -288,12 +288,12 @@ MACHINE_CONFIG_START(pc1500_state::pc1500) MCFG_PALETTE_ADD("palette", 2) MCFG_PALETTE_INIT_OWNER(pc1500_state, pc1500) - MCFG_DEVICE_ADD("lh5810", LH5810, 0) - MCFG_LH5810_PORTA_R_CB(READ8(*this, pc1500_state, port_a_r)) - MCFG_LH5810_PORTA_W_CB(WRITE8(*this, pc1500_state, kb_matrix_w)) - MCFG_LH5810_PORTB_R_CB(READ8(*this, pc1500_state, port_b_r)) - MCFG_LH5810_PORTC_W_CB(WRITE8(*this, pc1500_state, port_c_w)) - MCFG_LH5810_OUT_INT_CB(INPUTLINE("maincpu", LH5801_LINE_MI)) + lh5810_device &ioports(LH5810(config, "lh5810")); + ioports.porta_r().set(FUNC(pc1500_state::port_a_r)); + ioports.porta_w().set(FUNC(pc1500_state::kb_matrix_w)); + ioports.portb_r().set(FUNC(pc1500_state::port_b_r)); + ioports.portc_w().set(FUNC(pc1500_state::port_c_w)); + ioports.out_int().set_inputline("maincpu", LH5801_LINE_MI); MCFG_UPD1990A_ADD("upd1990a", XTAL(32'768), NOOP, NOOP) MACHINE_CONFIG_END |