(MESS) abc80: Fixed VSYNC and de-interleaved the ABCDemo diskette. ABCDemo now runs from both cassette and diskette. [Curt Coder]

This commit is contained in:
Curt Coder 2015-05-26 22:59:02 +03:00
parent 84c2694454
commit 89c46e3d8f
3 changed files with 6 additions and 3 deletions

View File

@ -75,10 +75,11 @@
<description>ABCDemo</description>
<year>2015</year>
<publisher>Genesis Project</publisher>
<info name="usage" value="RUN&quot;A.B&quot;" />
<part name="flop1" interface="floppy_5_25">
<dataarea name="flop" size="163840">
<rom name="genesisproject_abcdemo.dsk" size="163840" crc="29059d3c" sha1="55b38436a2d3cfe1caf8e35e44775402a1511eec" offset="0" />
<rom name="genesisproject_abcdemo.dsk" size="163840" crc="667459a0" sha1="ade6420c75a27840f5308fb588ba381ec5f527ea" offset="0" />
</dataarea>
</part>
</software>

View File

@ -442,10 +442,12 @@ void abc80_state::device_timer(emu_timer &timer, device_timer_id id, int param,
break;
case TIMER_ID_VSYNC_ON:
if (LOG) logerror("%s vsync 1\n", machine().time().as_string());
m_maincpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
case TIMER_ID_VSYNC_OFF:
if (LOG) logerror("%s vsync 0\n", machine().time().as_string());
m_maincpu->set_input_line(INPUT_LINE_NMI, CLEAR_LINE);
break;
@ -560,7 +562,7 @@ static MACHINE_CONFIG_START( abc80, abc80_state )
MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0)
MCFG_GENERIC_KEYBOARD_CB(WRITE8(abc80_state, kbd_w))
MCFG_QUICKLOAD_ADD("quickload", abc80_state, bac, "bac", 1)
MCFG_QUICKLOAD_ADD("quickload", abc80_state, bac, "bac", 2)
// internal ram
MCFG_RAM_ADD(RAM_TAG)

View File

@ -175,7 +175,7 @@ void abc80_state::video_start()
m_vsync_on_timer->adjust(screen->time_until_pos(0, 0), 0, screen->frame_period());
m_vsync_off_timer = timer_alloc(TIMER_ID_VSYNC_OFF);
m_vsync_on_timer->adjust(screen->time_until_pos(16, 0), 0, screen->frame_period());
m_vsync_off_timer->adjust(screen->time_until_pos(16, 0), 0, screen->frame_period());
// allocate memory
m_video_ram.allocate(0x400);