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

Function cdvdSetIrq

pcsx2/CDVD/CDVD.cpp:103–115  ·  view source on GitHub ↗

Sets the cdvd IRQ and the reason for the IRQ, and signals the IOP for a branch test (which will cause the exception to be handled).

Source from the content-addressed store, hash-verified

101// Sets the cdvd IRQ and the reason for the IRQ, and signals the IOP for a branch
102// test (which will cause the exception to be handled).
103static void cdvdSetIrq(uint id = (1 << Irq_CommandComplete))
104{
105 if (!(cdvd.IntrStat & id))
106 {
107 iopIntcIrq(2);
108 psxSetNextBranchDelta(20);
109 }
110 else
111 DevCon.Warning("CDVD trying to double issue IRQ %x", id);
112
113 cdvd.IntrStat |= id;
114 cdvd.AbortRequested = false;
115}
116
117static int mg_BIToffset(u8* buffer)
118{

Callers 6

cdvdCtrlTrayOpenFunction · 0.85
cdvdNewDiskCBFunction · 0.85
cdvdActionInterruptFunction · 0.85
cdvdReadInterruptFunction · 0.85
cdvdCommandErrorHandlerFunction · 0.85
cdvdWrite04Function · 0.85

Calls 3

iopIntcIrqFunction · 0.85
psxSetNextBranchDeltaFunction · 0.85
WarningMethod · 0.45

Tested by

no test coverage detected