Returns true if a video breakpoint is triggered ===========================================================================
| 1530 | // Returns true if a video breakpoint is triggered |
| 1531 | //=========================================================================== |
| 1532 | int CheckBreakpointsVideo () |
| 1533 | { |
| 1534 | int iBreakpointHit = 0; |
| 1535 | |
| 1536 | for (int iBreakpoint = 0; iBreakpoint < MAX_BREAKPOINTS; iBreakpoint++) |
| 1537 | { |
| 1538 | Breakpoint_t* pBP = &g_aBreakpoints[iBreakpoint]; |
| 1539 | |
| 1540 | if (!_BreakpointValid(pBP)) |
| 1541 | continue; |
| 1542 | |
| 1543 | if (pBP->eSource != BP_SRC_VIDEO_SCANNER) |
| 1544 | continue; |
| 1545 | |
| 1546 | uint16_t vert = NTSC_GetVideoVertForDebugger(); // update video scanner's vert/horz position - needed for when in fullspeed (GH#1164) |
| 1547 | if (_CheckBreakpointValue(pBP, vert)) |
| 1548 | { |
| 1549 | iBreakpointHit = HitBreakpoint(pBP, BP_HIT_VIDEO_POS, iBreakpoint); |
| 1550 | pBP->bEnabled = false; // Disable, otherwise it'll trigger many times on this scan-line |
| 1551 | // Don't break - instead process all BPs so that all pBP->nHitCount's are correct |
| 1552 | } |
| 1553 | } |
| 1554 | |
| 1555 | return iBreakpointHit; |
| 1556 | } |
| 1557 | |
| 1558 | //=========================================================================== |
| 1559 | static int CheckBreakpointsDmaToOrFromIOMemory (void) |
no test coverage detected