mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
i8255: Refactor to make clear the exact sequences of actions acka_r and ackb_r correspond to (nw)
This commit is contained in:
parent
6bf57e9b14
commit
257a236f6e
@ -835,11 +835,14 @@ uint8_t i8255_device::read_pa()
|
|||||||
READ8_MEMBER( i8255_device::acka_r )
|
READ8_MEMBER( i8255_device::acka_r )
|
||||||
{
|
{
|
||||||
if (!machine().side_effects_disabled())
|
if (!machine().side_effects_disabled())
|
||||||
{
|
|
||||||
pc6_w(0);
|
pc6_w(0);
|
||||||
|
|
||||||
|
uint8_t data = read_pa();
|
||||||
|
|
||||||
|
if (!machine().side_effects_disabled())
|
||||||
pc6_w(1);
|
pc6_w(1);
|
||||||
}
|
|
||||||
return read_pa();
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -873,11 +876,14 @@ uint8_t i8255_device::read_pb()
|
|||||||
READ8_MEMBER( i8255_device::ackb_r )
|
READ8_MEMBER( i8255_device::ackb_r )
|
||||||
{
|
{
|
||||||
if (!machine().side_effects_disabled())
|
if (!machine().side_effects_disabled())
|
||||||
{
|
|
||||||
pc2_w(0);
|
pc2_w(0);
|
||||||
|
|
||||||
|
uint8_t data = read_pb();
|
||||||
|
|
||||||
|
if (!machine().side_effects_disabled())
|
||||||
pc2_w(1);
|
pc2_w(1);
|
||||||
}
|
|
||||||
return read_pb();
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user