mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
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:
parent
58d832602b
commit
52a8ab6014
@ -270,7 +270,12 @@ WRITE8_DEVICE_HANDLER( z80pio_d_w )
|
|||||||
|
|
||||||
z80pio->out[offset] = data; /* latch out data */
|
z80pio->out[offset] = data; /* latch out data */
|
||||||
if(z80pio->port_write[offset])
|
if(z80pio->port_write[offset])
|
||||||
z80pio->port_write[offset](device, 0, data);
|
{
|
||||||
|
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])
|
switch (z80pio->mode[offset])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user