diff options
Diffstat (limited to 'src/mame/drivers/marywu.cpp')
-rw-r--r-- | src/mame/drivers/marywu.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/drivers/marywu.cpp b/src/mame/drivers/marywu.cpp index 0d99de7f3f2..79c03162f5b 100644 --- a/src/mame/drivers/marywu.cpp +++ b/src/mame/drivers/marywu.cpp @@ -186,11 +186,12 @@ void marywu_state::machine_start() m_leds.resolve(); } -MACHINE_CONFIG_START(marywu_state::marywu) +void marywu_state::marywu(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", I80C31, XTAL(10'738'635)) //actual CPU is a Winbond w78c31b-24 - MCFG_DEVICE_PROGRAM_MAP(program_map) - MCFG_DEVICE_IO_MAP(io_map) + i80c31_device &maincpu(I80C31(config, "maincpu", XTAL(10'738'635))); //actual CPU is a Winbond w78c31b-24 + maincpu.set_addrmap(AS_PROGRAM, &marywu_state::program_map); + maincpu.set_addrmap(AS_IO, &marywu_state::io_map); //TODO: figure out what each bit is mapped to in the 80c31 ports P1 and P3 /* Keyboard & display interface */ @@ -213,7 +214,7 @@ MACHINE_CONFIG_START(marywu_state::marywu) ay2.add_route(ALL_OUTPUTS, "mono", 0.50); ay2.port_a_write_callback().set(FUNC(marywu_state::ay2_port_a_w)); ay2.port_b_write_callback().set(FUNC(marywu_state::ay2_port_b_w)); -MACHINE_CONFIG_END +} ROM_START( marywu ) ROM_REGION( 0x8000, "maincpu", 0 ) |