Only called by Hardisk.cpp
| 1382 | |
| 1383 | // Only called by Hardisk.cpp |
| 1384 | bool DebuggerCheckMemBreakpoints (WORD nAddress, WORD nSize, bool isDmaToMemory) |
| 1385 | { |
| 1386 | // NB. Caller handles when (addr+size) wraps on 64K |
| 1387 | |
| 1388 | for (int iBreakpoint = 0; iBreakpoint < MAX_BREAKPOINTS; iBreakpoint++) |
| 1389 | { |
| 1390 | Breakpoint_t* pBP = &g_aBreakpoints[iBreakpoint]; |
| 1391 | if (_BreakpointValid(pBP)) |
| 1392 | { |
| 1393 | if (pBP->eSource == BP_SRC_MEM_RW || (pBP->eSource == BP_SRC_MEM_READ_ONLY && !isDmaToMemory) || (pBP->eSource == BP_SRC_MEM_WRITE_ONLY && isDmaToMemory)) |
| 1394 | { |
| 1395 | if (_CheckBreakpointRange(pBP, nAddress, nSize)) |
| 1396 | { |
| 1397 | DebuggerBreakOnDma(nAddress, nSize, isDmaToMemory, iBreakpoint); |
| 1398 | return true; |
| 1399 | } |
| 1400 | } |
| 1401 | } |
| 1402 | } |
| 1403 | |
| 1404 | return false; |
| 1405 | } |
| 1406 | |
| 1407 | //=========================================================================== |
| 1408 | int CheckBreakpointsIO () |
no test coverage detected