MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / CheckBreakpointsVideo

Function CheckBreakpointsVideo

source/Debugger/Debug.cpp:1532–1556  ·  view source on GitHub ↗

Returns true if a video breakpoint is triggered ===========================================================================

Source from the content-addressed store, hash-verified

1530// Returns true if a video breakpoint is triggered
1531//===========================================================================
1532int 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//===========================================================================
1559static int CheckBreakpointsDmaToOrFromIOMemory (void)

Callers 1

DebugContinueSteppingFunction · 0.85

Calls 4

_BreakpointValidFunction · 0.85
_CheckBreakpointValueFunction · 0.85
HitBreakpointFunction · 0.85

Tested by

no test coverage detected