Skip to content

Commit bfef3df

Browse files
committed
add a few comments
1 parent 1315418 commit bfef3df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/drivers/win/debugger.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ void UpdateDebugger(bool jump_to_pc)
10281028

10291029
// "Address Bookmark Add" follows the address
10301030

1031+
// Update register values
10311032
sprintf(str, "%02X", X.A);
10321033
SetDlgItemText(hDebug, IDC_DEBUGGER_VAL_A, str);
10331034
sprintf(str, "%02X", X.X);
@@ -1107,6 +1108,7 @@ void UpdateDebugger(bool jump_to_pc)
11071108

11081109
UpdateBreakpointsCaption();
11091110

1111+
// Draw the stack
11101112
tmp = X.S|0x0100;
11111113
sprintf(str, "Stack $%04X", tmp);
11121114
SetDlgItemText(hDebug, IDC_DEBUGGER_VAL_S, str);
@@ -2717,6 +2719,7 @@ INT_PTR CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP
27172719
break;
27182720
}
27192721
case IDC_DEBUGGER_ROM_PATCHER: DoPatcher(-1,hwndDlg); break; // TODO: delete/merge with ID_DEBUGGER_ROM_PATCHER
2722+
// Double click the breakpoint list
27202723
case DEBUGGER_CONTEXT_TOGGLEBREAK: DebuggerCallB(hwndDlg, WM_COMMAND, (LBN_DBLCLK * 0x10000) | (IDC_DEBUGGER_BP_LIST), lParam); break;
27212724
}
27222725
break;
@@ -2774,6 +2777,7 @@ void DoDebuggerStepInto()
27742777
{
27752778
if (!hDebug)
27762779
return;
2780+
// Click the Step Into button
27772781
DebuggerCallB(hDebug, WM_COMMAND, IDC_DEBUGGER_STEP_IN, 0);
27782782
}
27792783

0 commit comments

Comments
 (0)