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).
| 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). |
| 103 | static 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 | |
| 117 | static int mg_BIToffset(u8* buffer) |
| 118 | { |
no test coverage detected