diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2022-05-12 09:32:00 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2022-05-12 09:32:00 -0400 |
commit | 6774850a3d7e926c7b77026db585be3ebc169c35 (patch) | |
tree | 520b7f206731df395cac8f544998871802dcf5a0 /src/mame/drivers | |
parent | dbe50501811ed424ea727edca2b4666b89599a82 (diff) |
toratora: Use raw timing parameters for screen
Diffstat (limited to 'src/mame/drivers')
-rw-r--r-- | src/mame/drivers/toratora.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mame/drivers/toratora.cpp b/src/mame/drivers/toratora.cpp index 451186e9c89..2dfe83ea579 100644 --- a/src/mame/drivers/toratora.cpp +++ b/src/mame/drivers/toratora.cpp @@ -394,21 +394,21 @@ void toratora_state::machine_reset() void toratora_state::toratora(machine_config &config) { /* basic machine hardware */ - M6800(config, m_maincpu, 5185000 / 8); /* 5.185 MHz XTAL divided by 8 (@ U94.12) */ + M6800(config, m_maincpu, 5.185_MHz_XTAL / 8); /* 5.185 MHz XTAL divided by 8 (@ U94.12) */ m_maincpu->set_addrmap(AS_PROGRAM, &toratora_state::main_map); m_maincpu->set_periodic_int(FUNC(toratora_state::toratora_timer), attotime::from_hz(250)); /* timer counting at 250 Hz */ - PIA6821(config, m_pia_u1, 0); + PIA6821(config, m_pia_u1); m_pia_u1->writepb_handler().set(FUNC(toratora_state::port_b_u1_w)); m_pia_u1->irqa_handler().set(FUNC(toratora_state::main_cpu_irq)); m_pia_u1->irqb_handler().set(FUNC(toratora_state::main_cpu_irq)); - PIA6821(config, m_pia_u3, 0); + PIA6821(config, m_pia_u3); m_pia_u3->writepa_handler().set(FUNC(toratora_state::sn1_port_a_u3_w)); m_pia_u3->writepb_handler().set(FUNC(toratora_state::sn1_port_b_u3_w)); m_pia_u3->ca2_handler().set(FUNC(toratora_state::sn1_ca2_u3_w)); - PIA6821(config, m_pia_u2, 0); + PIA6821(config, m_pia_u2); m_pia_u2->readpb_handler().set_ioport("DSW"); m_pia_u2->writepa_handler().set(FUNC(toratora_state::sn2_port_a_u2_w)); m_pia_u2->writepb_handler().set(FUNC(toratora_state::sn2_port_b_u2_w)); @@ -417,10 +417,7 @@ void toratora_state::toratora(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); - screen.set_size(256, 256); - screen.set_visarea(0,256-1,8,248-1); - screen.set_refresh_hz(60); - screen.set_vblank_time(ATTOSECONDS_IN_USEC(0)); + screen.set_raw(5.185_MHz_XTAL, 320, 0, 256, 287, 8, 248); screen.set_screen_update(FUNC(toratora_state::screen_update_toratora)); /* audio hardware */ |