Previous 15994 Revisions Next

r7418 Thursday 18th February, 2010 at 12:09:26 UTC by Curt Coder
[SUPER80] Fixed PIO regression.
[src/emu/machine]z80pio.c
[src/mess/drivers]super80.c
[src/mess/includes]super80.h
[src/mess/machine]super80.c

src/emu/machine/z80pio.c
r7417r7418
301301               /* next word is mask control */
302302               port->next_control_word = MASK;
303303            }
304            else
305            {
306               /* monitor all bits */
307               port->mask = 0;
308            }
309304            break;
310305
311306         case 0x03: /* set interrupt enable flip-flop */
src/mess/includes/super80.h
r7417r7418
3333WRITE8_HANDLER( super80_dc_w );
3434WRITE8_HANDLER( super80_f0_w );
3535WRITE8_HANDLER( super80r_f0_w );
36READ8_DEVICE_HANDLER( super80_pio_r );
37WRITE8_DEVICE_HANDLER( super80_pio_w );
3836MACHINE_RESET( super80 );
3937DRIVER_INIT( super80 );
4038DRIVER_INIT( super80v );
src/mess/machine/super80.c
r7417r7418
215215   super80_shared |= 0x14;
216216}
217217
218READ8_DEVICE_HANDLER( super80_pio_r )
219{
220   if (!offset)
221      return z80pio_d_r(device, 0);
222   else
223   if (offset == 1)
224      return z80pio_c_r(device, 0);
225   else
226   if (offset == 2)
227      return z80pio_d_r(device, 1);
228   else
229      return z80pio_c_r(device, 1);
230}
231
232WRITE8_DEVICE_HANDLER( super80_pio_w )
233{
234   if (!offset)
235      z80pio_d_w(device, 0, data);
236   else
237   if (offset == 1)
238      z80pio_c_w(device, 0, data);
239   else
240   if (offset == 2)
241      z80pio_d_w(device, 1, data);
242   else
243      z80pio_c_w(device, 1, data);
244}
245
246218/**************************** BASIC MACHINE CONSTRUCTION ***********************************************************/
247219
248220MACHINE_RESET( super80 )
src/mess/drivers/super80.c
r7417r7418
239239   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80_f0_w)
240240   AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x14) AM_WRITE(super80_f1_w)
241241   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r)
242   AM_RANGE(0xf8, 0xfb) AM_MIRROR(0x04) AM_DEVREADWRITE("z80pio",super80_pio_r,super80_pio_w)
242   AM_RANGE(0xf8, 0xfb) AM_MIRROR(0x04) AM_DEVREADWRITE("z80pio", z80pio_ba_cd_r, z80pio_ba_cd_w)
243243ADDRESS_MAP_END
244244
245245static ADDRESS_MAP_START( super80r_io, ADDRESS_SPACE_IO, 8 )
r7417r7418
251251   AM_RANGE(0xdc, 0xdc) AM_READWRITE(super80_dc_r, super80_dc_w)
252252   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80r_f0_w)
253253   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r)
254   AM_RANGE(0xf8, 0xfb) AM_MIRROR(0x04) AM_DEVREADWRITE("z80pio",super80_pio_r,super80_pio_w)
254   AM_RANGE(0xf8, 0xfb) AM_MIRROR(0x04) AM_DEVREADWRITE("z80pio", z80pio_ba_cd_r, z80pio_ba_cd_w)
255255ADDRESS_MAP_END
256256
257257static ADDRESS_MAP_START( super80v_io, ADDRESS_SPACE_IO, 8 )
r7417r7418
263263   AM_RANGE(0xdc, 0xdc) AM_READWRITE(super80_dc_r, super80_dc_w)
264264   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80_f0_w)
265265   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r)
266   AM_RANGE(0xf8, 0xfb) AM_MIRROR(0x04) AM_DEVREADWRITE("z80pio",super80_pio_r,super80_pio_w)
266   AM_RANGE(0xf8, 0xfb) AM_MIRROR(0x04) AM_DEVREADWRITE("z80pio", z80pio_ba_cd_r, z80pio_ba_cd_w)
267267ADDRESS_MAP_END
268268
269269/**************************** DIPSWITCHES, KEYBOARD, HARDWARE CONFIGURATION ****************************************/

Previous 15994 Revisions Next


© 1998-2018 The MESS Team