MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SetAcknowledge

Method SetAcknowledge

pcsx2/SIO/Sio0.cpp:68–78  ·  view source on GitHub ↗

Simulates the ACK line on the bus. Peripherals are expected to send an ACK signal over this line to tell the PS1 "keep sending me things I'm not done yet". The PS1 then uses this after it receives the peripheral's response to decide what to do.

Source from the content-addressed store, hash-verified

66// over this line to tell the PS1 "keep sending me things I'm not done yet". The PS1
67// then uses this after it receives the peripheral's response to decide what to do.
68void Sio0::SetAcknowledge(bool ack)
69{
70 if (ack)
71 {
72 stat |= SIO0_STAT::ACK;
73 }
74 else
75 {
76 stat &= ~(SIO0_STAT::ACK);
77 }
78}
79
80void Sio0::Interrupt(Sio0Interrupt sio0Interrupt)
81{

Callers 15

PS1ReadMethod · 0.80
PS1WriteMethod · 0.80
PS1PocketstationMethod · 0.80
ButtonQueryMethod · 0.80
PollMethod · 0.80
ConfigMethod · 0.80
ModeSwitchMethod · 0.80
StatusInfoMethod · 0.80
Constant1Method · 0.80
Constant2Method · 0.80
Constant3Method · 0.80
ButtonQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected