From a1e098a078d66f703895f8ff7108f6b948a2c37d Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sat, 3 Jan 2009 08:44:30 +0000 Subject: [PATCH] Changed P4 control to the PROG line, which is more likely. The way to toggle the PROG line is to read/write/and/or to ports 4-7. Since the board doesn't list an 8243 port expander, it is likely the "writes" to port 4 are really just a mechanism to get the PROG line to toggle to clear the interrupt. --- src/mame/drivers/videopkr.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mame/drivers/videopkr.c b/src/mame/drivers/videopkr.c index 49569b9a5ad..ac84621dc18 100644 --- a/src/mame/drivers/videopkr.c +++ b/src/mame/drivers/videopkr.c @@ -672,9 +672,10 @@ static READ8_HANDLER( videopkr_t0_latch ) return t0_latch; } -static WRITE8_HANDLER(p4_w) +static WRITE8_HANDLER( prog_w ) { - cputag_set_input_line(space->machine, "main", 0, CLEAR_LINE); /* clear interrupt FF */ + if (!data) + cputag_set_input_line(space->machine, "main", 0, CLEAR_LINE); /* clear interrupt FF */ } /************************* @@ -877,11 +878,11 @@ static ADDRESS_MAP_START( i8039_readmem, ADDRESS_SPACE_PROGRAM, 8 ) ADDRESS_MAP_END static ADDRESS_MAP_START( i8039_io_port, ADDRESS_SPACE_IO, 8 ) - AM_RANGE(0x00 , 0xff ) AM_READWRITE(videopkr_io_r, videopkr_io_w) - AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READWRITE(videopkr_p1_data_r, videopkr_p1_data_w) - AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READWRITE(videopkr_p2_data_r, videopkr_p2_data_w) - AM_RANGE(MCS48_PORT_P4, MCS48_PORT_P4) AM_WRITE(p4_w) - AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_READ(videopkr_t0_latch) + AM_RANGE(0x00, 0xff ) AM_READWRITE(videopkr_io_r, videopkr_io_w) + AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1 ) AM_READWRITE(videopkr_p1_data_r, videopkr_p1_data_w) + AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2 ) AM_READWRITE(videopkr_p2_data_r, videopkr_p2_data_w) + AM_RANGE(MCS48_PORT_PROG, MCS48_PORT_PROG) AM_WRITE(prog_w) + AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0 ) AM_READ(videopkr_t0_latch) ADDRESS_MAP_END static ADDRESS_MAP_START( i8039_sound_mem, ADDRESS_SPACE_PROGRAM, 8 )