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

Function CmdBreakpointAddVideo

source/Debugger/Debug.cpp:1929–1953  ·  view source on GitHub ↗

=========================================================================== Pre: nArgs = last valid index into g_aArgs[]

Source from the content-addressed store, hash-verified

1927//===========================================================================
1928// Pre: nArgs = last valid index into g_aArgs[]
1929Update_t CmdBreakpointAddVideo (const int nArgs)
1930{
1931 BreakpointSource_t iSrc = BP_SRC_VIDEO_SCANNER;
1932 BreakpointOperator_t iCmp = BP_OP_EQUAL;
1933
1934 int iArg = 1;
1935 while (iArg <= nArgs)
1936 {
1937 if (g_aArgs[iArg].bType & TYPE_OPERATOR)
1938 {
1939 return Help_Arg_1(CMD_BREAKPOINT_ADD_VIDEO);
1940 }
1941 else
1942 {
1943 int dArg = _CmdBreakpointAddCommonArg( nArgs, iArg, iSrc, iCmp );
1944 if (!dArg)
1945 {
1946 return Help_Arg_1(CMD_BREAKPOINT_ADD_VIDEO);
1947 }
1948 iArg += dArg;
1949 }
1950 }
1951
1952 return UPDATE_BREAKPOINTS | UPDATE_CONSOLE_DISPLAY;
1953}
1954
1955//===========================================================================
1956Update_t CmdBreakpointClear (int nArgs)

Callers

nothing calls this directly

Calls 2

Help_Arg_1Function · 0.85

Tested by

no test coverage detected