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

Function CheckBreakpointsDmaToOrFromMemory

source/Debugger/Debug.cpp:1573–1590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1571}
1572
1573static int CheckBreakpointsDmaToOrFromMemory (int idx)
1574{
1575 if (idx == -1)
1576 {
1577 int res = 0;
1578 for (int i = 0; i < NUM_BREAK_ON_DMA; i++)
1579 res |= g_DebugBreakOnDMA[i].isToOrFromMemory;
1580 return res;
1581 }
1582
1583 _ASSERT(idx < NUM_BREAK_ON_DMA);
1584 if (idx >= NUM_BREAK_ON_DMA)
1585 return 0;
1586
1587 int res = g_DebugBreakOnDMA[idx].isToOrFromMemory;
1588 g_DebugBreakOnDMA[idx].isToOrFromMemory = 0;
1589 return res;
1590}
1591
1592static void DebuggerBreakOnDma (WORD nAddress, WORD nSize, bool isDmaToMemory, int iBreakpoint)
1593{

Callers 1

DebugContinueSteppingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected