summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ss50
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ss50')
-rw-r--r--src/devices/bus/ss50/interface.h4
-rw-r--r--src/devices/bus/ss50/mpc.cpp32
2 files changed, 18 insertions, 18 deletions
diff --git a/src/devices/bus/ss50/interface.h b/src/devices/bus/ss50/interface.h
index 5b79e00894c..1865eda6324 100644
--- a/src/devices/bus/ss50/interface.h
+++ b/src/devices/bus/ss50/interface.h
@@ -20,10 +20,10 @@
MCFG_DEVICE_SLOT_INTERFACE(ss50_##_slot_intf, _def_slot, false)
#define MCFG_SS50_INTERFACE_IRQ_CALLBACK(_devcb) \
- devcb = &downcast<ss50_interface_port_device &>(*device).set_irq_cb(DEVCB_##_devcb);
+ downcast<ss50_interface_port_device &>(*device).set_irq_cb(DEVCB_##_devcb);
#define MCFG_SS50_INTERFACE_FIRQ_CALLBACK(_devcb) \
- devcb = &downcast<ss50_interface_port_device &>(*device).set_firq_cb(DEVCB_##_devcb);
+ downcast<ss50_interface_port_device &>(*device).set_firq_cb(DEVCB_##_devcb);
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/bus/ss50/mpc.cpp b/src/devices/bus/ss50/mpc.cpp
index 8489e23e29b..25a6ed43951 100644
--- a/src/devices/bus/ss50/mpc.cpp
+++ b/src/devices/bus/ss50/mpc.cpp
@@ -25,13 +25,13 @@ class ss50_mpc_device : public device_t, public ss50_card_interface
public:
// construction/destruction
ss50_mpc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
- : device_t(mconfig, SS50_MPC, tag, owner, clock),
- ss50_card_interface(mconfig, *this),
- m_pia(*this, "pia"),
- m_loopback(*this, "loopback"),
- m_counter(*this, "counter"),
- m_baud_jumper(*this, "BAUD"),
- m_count_select(false)
+ : device_t(mconfig, SS50_MPC, tag, owner, clock)
+ , ss50_card_interface(mconfig, *this)
+ , m_pia(*this, "pia")
+ , m_loopback(*this, "loopback")
+ , m_counter(*this, "counter")
+ , m_baud_jumper(*this, "BAUD")
+ , m_count_select(false)
{
}
@@ -101,15 +101,15 @@ DEVICE_INPUT_DEFAULTS_END
//-------------------------------------------------
MACHINE_CONFIG_START(ss50_mpc_device::device_add_mconfig)
- MCFG_DEVICE_ADD("pia", PIA6821, 0) // actually MC6820
- MCFG_PIA_WRITEPA_HANDLER(WRITELINE("outgate", input_merger_device, in_w<0>)) MCFG_DEVCB_BIT(0)
- MCFG_PIA_CB2_HANDLER(WRITELINE(*this, ss50_mpc_device, reader_control_w))
- MCFG_PIA_READPB_HANDLER(IOPORT("STOP")) MCFG_DEVCB_BIT(6)
- MCFG_DEVCB_CHAIN_INPUT(READLINE(*this, ss50_mpc_device, count_r)) MCFG_DEVCB_BIT(7)
- MCFG_PIA_WRITEPB_HANDLER(WRITELINE(*this, ss50_mpc_device, count_select_w)) MCFG_DEVCB_BIT(2)
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("counter", ripple_counter_device, reset_w)) MCFG_DEVCB_BIT(0)
- //MCFG_PIA_IRQA_HANDLER(WRITELINE(*this, ss50_mpc_device, pia_irq_w))
- //MCFG_PIA_IRQB_HANDLER(WRITELINE(*this, ss50_mpc_device, pia_irq_w))
+ PIA6821(config, m_pia, 0); // actually MC6820
+ m_pia->writepa_handler().set("outgate", FUNC(input_merger_device::in_w<0>)).bit(0);
+ m_pia->cb2_handler().set(FUNC(ss50_mpc_device::reader_control_w));
+ m_pia->readpb_handler().set_ioport("STOP").mask(0x01).lshift(6);
+ m_pia->readpb_handler().append(FUNC(ss50_mpc_device::count_r)).lshift(7);
+ m_pia->writepb_handler().set(FUNC(ss50_mpc_device::count_select_w)).bit(2);
+ m_pia->writepb_handler().append(m_counter, FUNC(ripple_counter_device::reset_w)).bit(0);
+ //m_pia->irqa_handler().set(FUNC(ss50_mpc_device::pia_irq_w));
+ //m_pia->irqb_handler().set(FUNC(ss50_mpc_device::pia_irq_w));
MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "terminal")
MCFG_RS232_RXD_HANDLER(WRITELINE(*this, ss50_mpc_device, serial_input_w))
FG_SLOT_FIXED(true) Nathan Woods7 years mastergalaxian/galaxian.cpp: Add another Video Dens Pac-Man bootleg. (#12301) ClawGrip21 hours n64-angrylion Vas Crabb6 years mame0200commit ff19cd3977... Vas Crabb6 years mame0199commit f2e805a153... Vas Crabb6 years mame0198commit c5f6a62d59... Vas Crabb6 years mame0197commit 74293f8247... Vas Crabb6 years mame0196commit e8f2016076... Vas Crabb6 years mame0195commit e44e85b8ef... Vas Crabb6 years mame0194commit 5be2496d0c... Vas Crabb6 years mame0193commit bf28b347fb... Vas Crabb6 years mame0192commit d771f54227... Vas Crabb6 years mame0191commit a5db728b9c... Vas Crabb7 years mame0190commit f57574c238... Vas Crabb7 years mame0189commit 2beedc540f... Vas Crabb7 years mame0188commit 7b45ec19f1... Vas Crabb7 years mame0187commit 1d9648b01c... Vas Crabb7 years mame0186commit e4c6cb15e0... Vas Crabb7 years mame0185commit fe01a1342c... Vas Crabb7 years mame0184commit 7768128734... Vas Crabb7 years mame0183commit 4ee22dce05... Vas Crabb7 years mame0182commit 22c42abfdf... Vas Crabb7 years mame0181commit 3a1651e83a... Vas Crabb7 years mame0180commit 5527e1124a... Vas Crabb7 years mame0179commit d9c5fcaf6d... Vas Crabb8 years mame0178commit e2641a33c1... Vas Crabb8 years mame0177commit dc9f8852b3... Vas Crabb8 years mame0176commit 14e7367f7e... Miodrag Milanovic8 years mame0175commit 63f9a01f8c... Miodrag Milanovic8 years mame0174commit 68785dccfe... Miodrag Milanovic8 years mame0173commit cfee536f22... Miodrag Milanovic8 years mame0172commit f67cb62dbc... Miodrag Milanovic8 years mame0171commit 834936200a... Miodrag Milanovic8 years mame0170commit b1d6f6d63f... Miodrag Milanovic8 years mame0169commit 4afd75e2fd... Miodrag Milanovic8 years mame0168commit 0825ce4f3b... Miodrag Milanovic8 years mame0167commit 47f56372ee... Miodrag Milanovic8 years mame0166commit 8e4ced4b53... Miodrag Milanovic9 years mame0165commit efa3a679a3... Miodrag Milanovic9 years mame0164commit 1b452e3bfb... Miodrag Milanovic9 years mame0163commit d1583b9850... Miodrag Milanovic9 years mame0162commit 64e16ca8cf... Miodrag Milanovic9 years mame0161commit 76b978d039... Miodrag Milanovic9 years mame0160commit 0147bb4cc8... Miodrag Milanovic9 years mame0159commit 6ae44e46f9... Miodrag Milanovic9 years mame0158commit 26e7a17b63... Miodrag Milanovic9 years mame0157commit e6f78d5ed2... Miodrag Milanovic9 years mame0156commit ebeaa953a3... Miodrag Milanovic9 years mame0155commit c93ed344fb... Miodrag Milanovic10 years mame0154commit 6b280cd397... Miodrag Milanovic10 years mame0153commit fec65e0b57... Miodrag Milanovic10 years mame0152commit ca546caa6e... Miodrag Milanovic10 years mame0151commit 44d5c1b8ab... Miodrag Milanovic10 years mame0150commit 96aa5e1c08... Miodrag Milanovic11 years mame0149u1commit 14629cbcb4... Miodrag Milanovic11 years mame0149commit 16f5234d43... Miodrag Milanovic11 years mame0148u5commit 1c05ccc93b... Miodrag Milanovic11 years mame0148u4commit 4bf717996f... Miodrag Milanovic11 years mame0148u3commit c6cd8a09c8... Miodrag Milanovic11 years mame0148u2commit 0e1f5ad25b... Miodrag Milanovic11 years mame0148u1commit a440a8e020... Miodrag Milanovic11 years mame0148commit 0e19f641d3... Miodrag Milanovic11 years mame0147u4commit 436d2f757f... Miodrag Milanovic11 years mame0147u3commit 8813fb6bcd... Miodrag Milanovic11 years mame0147u2commit 6bfc7e54f9... Miodrag Milanovic11 years mame0147u1commit f3d5df18e3... Miodrag Milanovic12 years mame0147commit e25c13f253... Miodrag Milanovic12 years mame0146u5commit f54800c1f3... Miodrag Milanovic12 years mame0146u4commit 36e856cee3... Miodrag Milanovic12 years mame0146u3commit ed9afac60c... Miodrag Milanovic12 years mame0146u2commit 3a36a15a02... Miodrag Milanovic12 years mame0146u1commit f9f61e103a... Miodrag Milanovic12 years mame0146commit 4546ea6b2a... Miodrag Milanovic12 years mame0145u8commit 0238c610f7... Miodrag Milanovic12 years mame0145u7commit ded30e907e... Angelo Salese12 years mame0145u6commit 35e09dd41c... Angelo Salese12 years mame0145u5commit e684511fbc... Angelo Salese12 years mame0145u4commit d2c052dbef... Angelo Salese12 years mame0145u3commit d27f8cb525... Angelo Salese12 years mame0145u2commit 04145d0b62... Angelo Salese12 years mame0145u1commit cf4b58b6f6... Angelo Salese12 years mame0145commit 148ae08ad2... Angelo Salese12 years mame0144u7commit 505442d0a0... Angelo Salese12 years mame0144u6commit 7b631e4c5b... Angelo Salese12 years mame0144u5commit fbd35ee85a... Angelo Salese12 years mame0144u4commit 7e812d10d3... Angelo Salese12 years mame0144u3commit f0649b4e22... Angelo Salese12 years mame0144u2commit ba2d56dc72... Angelo Salese12 years mame0144u1commit 9f8125a24e... Angelo Salese12 years mame0144commit 18b06709c8... Angelo Salese12 years mame0143u9commit 0e5fb79526... Angelo Salese13 years mame0143u8commit e6b9af5ec6... Angelo Salese13 years mame0143u7commit 83d2ea066c... Angelo Salese13 years mame0143u6commit cb74ddd807... Angelo Salese13 years mame0143u5commit c0b3576488... Angelo Salese13 years mame0143u4commit e65f7e8441... Angelo Salese13 years mame0143u3commit fd97e3da4c... Angelo Salese13 years mame0143u2commit c6e2fca80a... Angelo Salese13 years mame0143u1commit 192c9e04f5... Angelo Salese13 years mame0143commit ef7acc5d65... Angelo Salese13 years mame0142u6commit e6050ace10... Angelo Salese13 years