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

Method Interrupt

pcsx2/SIO/Sio0.cpp:80–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void Sio0::Interrupt(Sio0Interrupt sio0Interrupt)
81{
82 switch (sio0Interrupt)
83 {
84 case Sio0Interrupt::TEST_EVENT:
85 iopIntcIrq(7);
86 break;
87 case Sio0Interrupt::STAT_READ:
88 ClearStatAcknowledge();
89 break;
90 case Sio0Interrupt::TX_DATA_WRITE:
91 break;
92 default:
93 Console.Error("%s(%d) Invalid parameter", __FUNCTION__, sio0Interrupt);
94 assert(false);
95 break;
96 }
97
98 if (!(psxRegs.interrupt & (1 << IopEvt_SIO)))
99 {
100 PSX_INT(IopEvt_SIO, PSXCLK / 250000); // PSXCLK/250000);
101 }
102}
103
104u8 Sio0::GetTxData()
105{

Callers

nothing calls this directly

Calls 3

iopIntcIrqFunction · 0.85
PSX_INTFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected