From: Robert [mailto:pac0446@bigpond.net.au]

Sent: Sunday, March 15, 2009 5:23 AM
To: Mamedev submit
Subject: Fx to z80pio

When outputting from a port to the hardware in pio mode 3, only those bits defined 
by the mask should be output. Mame currently outputs everything.

New source code (z80pio.c) attached.

Regards,
Robbbert
This commit is contained in:
Aaron Giles 2009-03-19 06:16:34 +00:00
parent 58d832602b
commit 52a8ab6014

View File

@ -270,7 +270,12 @@ WRITE8_DEVICE_HANDLER( z80pio_d_w )
z80pio->out[offset] = data; /* latch out data */
if(z80pio->port_write[offset])
{
if (z80pio->mode[offset] == PIO_MODE3)
z80pio->port_write[offset](device, 0, data & ~z80pio->dir[offset]);
else
z80pio->port_write[offset](device, 0, data);
}
switch (z80pio->mode[offset])
{