| 162 | } |
| 163 | |
| 164 | void BreakpointCard::CbFunction(uint8_t slot, INTERCEPTBREAKPOINT interceptBreakpoint) |
| 165 | { |
| 166 | BreakpointCard* pCard = (BreakpointCard*)MemGetSlotParameters(slot); |
| 167 | |
| 168 | pCard->m_deferred = interceptBreakpoint; |
| 169 | |
| 170 | // Defer processing the breakpoint by 1 opcode (ie. 1 cycle), otherwise this happens: |
| 171 | // . BP occurs at <addr>, but opcode hasn't executed yet |
| 172 | // . Breakpoint card aserts IRQ, and IRQ is taken by 6502 |
| 173 | // . 6502 executes ISR, and returns to <addr> |
| 174 | // . BP occurs at <addr>... |
| 175 | |
| 176 | pCard->m_syncEvent.m_cyclesRemaining = 1; // Next opcode |
| 177 | g_SynchronousEventMgr.Insert(&pCard->m_syncEvent); |
| 178 | } |
| 179 | |
| 180 | int BreakpointCard::SyncEventCallback(int id, int cycles, ULONG uExecutedCycles) |
| 181 | { |
nothing calls this directly
no test coverage detected