diff options
Diffstat (limited to 'src/mame/drivers/picno.cpp')
-rw-r--r-- | src/mame/drivers/picno.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/drivers/picno.cpp b/src/mame/drivers/picno.cpp index 035943a0648..497525bd842 100644 --- a/src/mame/drivers/picno.cpp +++ b/src/mame/drivers/picno.cpp @@ -66,21 +66,20 @@ void picno_state::io_map(address_map &map) static INPUT_PORTS_START( picno ) INPUT_PORTS_END -void picno_state::picno(machine_config &config) -{ +MACHINE_CONFIG_START(picno_state::picno) /* basic machine hardware */ - H83002(config, m_maincpu, XTAL(20'000'000)); /* TODO: correct CPU type (H8/532), crystal is a guess, divided by 2 in the cpu */ - m_maincpu->set_addrmap(AS_PROGRAM, &picno_state::mem_map); - m_maincpu->set_addrmap(AS_IO, &picno_state::io_map); + MCFG_DEVICE_ADD("maincpu", H83002, XTAL(20'000'000)) /* TODO: correct CPU type (H8/532), crystal is a guess, divided by 2 in the cpu */ + MCFG_DEVICE_PROGRAM_MAP(mem_map) + MCFG_DEVICE_IO_MAP(io_map) //MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") // no speaker in the unit, but there's a couple of sockets on the back //MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) //MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) - GENERIC_CARTSLOT(config, "cartslot", generic_linear_slot, "picno_cart"); + MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_linear_slot, "picno_cart") - SOFTWARE_LIST(config, "cart_list").set_original("picno"); -} + MCFG_SOFTWARE_LIST_ADD("cart_list", "picno") +MACHINE_CONFIG_END ROM_START( picno ) ROM_REGION(0x88000, "roms", 0) |