summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/patinho_feio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/patinho_feio.cpp')
-rw-r--r--src/mame/drivers/patinho_feio.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/drivers/patinho_feio.cpp b/src/mame/drivers/patinho_feio.cpp
index 92463e03178..3dc8ebb7cc7 100644
--- a/src/mame/drivers/patinho_feio.cpp
+++ b/src/mame/drivers/patinho_feio.cpp
@@ -241,55 +241,55 @@ static INPUT_PORTS_START( patinho_feio )
PORT_BIT(0x800, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("MEMORIA (Liberada/Protegida)") PORT_CODE(KEYCODE_M) PORT_TOGGLE
INPUT_PORTS_END
-MACHINE_CONFIG_START(patinho_feio_state::patinho_feio)
+void patinho_feio_state::patinho_feio(machine_config &config)
+{
/* basic machine hardware */
/* CPU @ approx. 500 kHz (memory cycle time is 2usec) */
- MCFG_DEVICE_ADD("maincpu", PATO_FEIO_CPU, 500000)
- MCFG_PATINHO_RC_READ_CB(IOPORT("RC"))
- MCFG_PATINHO_BUTTONS_READ_CB(IOPORT("BUTTONS"))
+ PATO_FEIO_CPU(config, m_maincpu, 500000);
+ m_maincpu->rc_read().set_ioport("RC");
+ m_maincpu->buttons_read().set_ioport("BUTTONS");
/* Printer */
-// MCFG_PATINHO_IODEV_WRITE_CB(0x5, WRITE8(*this, patinho_feio_state, printer_data_w))
+// m_maincpu->iodev_write<5>().set(FUNC(patinho_feio_state::printer_data_w));
/* Papertape Puncher */
-// MCFG_PATINHO_IODEV_WRITE_CB(0x8, WRITE8(*this, patinho_feio_state, papertape_punch_data_w))
+// m_maincpu->iodev_write<8>().set(FUNC(patinho_feio_state::papertape_punch_data_w));
/* Card Reader */
-// MCFG_PATINHO_IODEV_READ_CB(0x9, READ8(*this, patinho_feio_state, cardreader_data_r))
+// m_maincpu->iodev_read<9>().set(FUNC(patinho_feio_state::cardreader_data_r));
/* DECWRITER
(max. speed: ?) */
- MCFG_PATINHO_IODEV_WRITE_CB(0xA, WRITE8(*this, patinho_feio_state, decwriter_data_w))
+ m_maincpu->iodev_write<10>().set(FUNC(patinho_feio_state::decwriter_data_w));
/* Teleprinter
TeleType ASR33
(max. speed: 10 characters per second)
with paper tape reading (and optionally punching) capabilities */
- MCFG_PATINHO_IODEV_WRITE_CB(0xB, WRITE8(*this, patinho_feio_state, teletype_data_w))
+ m_maincpu->iodev_write<11>().set(FUNC(patinho_feio_state::teletype_data_w));
/* Papertape Reader
Hewlett-Packard HP-2737-A
Optical Papertape Reader (max. speed: 300 characters per second) */
-// MCFG_PATINHO_IODEV_READ_CB(0xE, READ8(*this, patinho_feio_state, papertapereader_data_r))
+// m_maincpu->iodev_read<14>().set(FUNC(patinho_feio_state::papertapereader_data_r));
/* DECWRITER */
- teleprinter_device &decwriter(TELEPRINTER(config, "decwriter", 0));
- decwriter.set_keyboard_callback(FUNC(patinho_feio_state::decwriter_kbd_input));
+ TELEPRINTER(config, m_decwriter, 0);
+ m_decwriter->set_keyboard_callback(FUNC(patinho_feio_state::decwriter_kbd_input));
/* Teletype */
- teleprinter_device &teletype(TELEPRINTER(config, "teletype", 1));
- teletype.set_keyboard_callback(FUNC(patinho_feio_state::teletype_kbd_input));
+ TELEPRINTER(config, m_tty, 1);
+ m_tty->set_keyboard_callback(FUNC(patinho_feio_state::teletype_kbd_input));
/* punched tape */
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "patinho_tape")
- MCFG_GENERIC_EXTENSIONS("bin")
- MCFG_GENERIC_LOAD(patinho_feio_state, patinho_tape)
+ generic_cartslot_device &cartslot(GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "patinho_tape", "bin"));
+ cartslot.set_device_load(device_image_load_delegate(&patinho_feio_state::device_image_load_patinho_tape, this));
config.set_default_layout(layout_patinho);
// software lists
-// MCFG_SOFTWARE_LIST_ADD("tape_list", "patinho")
-MACHINE_CONFIG_END
+// SOFTWARE_LIST(config, "tape_list").set_original("patinho");
+}
ROM_START( patinho )
ROM_REGION( 0x0d5, "hexam", 0 )