mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
mcs48.c: Write p1 and p2 on reset
These ports are actually ports which sink current on logical 0. With a logical 1, they are in high impedance mode and may be read. The high impedance is treated as logical 1 by TTL gates connected to them.
This commit is contained in:
parent
bd39d9e8c9
commit
299fc7ec1a
@ -772,6 +772,8 @@ static void mcs48_reset(void)
|
||||
bus_w(0xff);
|
||||
mcs48.p1 = 0xff;
|
||||
mcs48.p2 = 0xff;
|
||||
port_w(1, mcs48.p1);
|
||||
port_w(2, mcs48.p2);
|
||||
mcs48.tirq_enabled = FALSE;
|
||||
mcs48.xirq_enabled = FALSE;
|
||||
mcs48.timecount_enabled = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user