diff options
Diffstat (limited to 'src/mame/drivers/picno.cpp')
-rw-r--r-- | src/mame/drivers/picno.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/picno.cpp b/src/mame/drivers/picno.cpp index 497525bd842..035943a0648 100644 --- a/src/mame/drivers/picno.cpp +++ b/src/mame/drivers/picno.cpp @@ -66,20 +66,21 @@ void picno_state::io_map(address_map &map) static INPUT_PORTS_START( picno ) INPUT_PORTS_END -MACHINE_CONFIG_START(picno_state::picno) +void picno_state::picno(machine_config &config) +{ /* basic machine hardware */ - 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) + 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_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) - MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_linear_slot, "picno_cart") + GENERIC_CARTSLOT(config, "cartslot", generic_linear_slot, "picno_cart"); - MCFG_SOFTWARE_LIST_ADD("cart_list", "picno") -MACHINE_CONFIG_END + SOFTWARE_LIST(config, "cart_list").set_original("picno"); +} ROM_START( picno ) ROM_REGION(0x88000, "roms", 0) |