Skip to content

Conversation

@Sightem
Copy link
Contributor

@Sightem Sightem commented Oct 22, 2025

This PR implements a new "Step Until Return" debugger command that allows the CPU to continue until it encounters a return instruction (RET, RETI, etc.) at or above the current stack level.

Behavior:
When Step Until Return is activated, the debugger will:

  1. Capture the current stack pointer level
  2. Continue execution normally
  3. Break when any return instruction (RET, RETI) is executed at or above the captured stack level
  4. Display the debugger at the return instruction location

Keyboard shortcut: Shift+F9

Breakpoints/watchpoints cancel the command.

@adriweb adriweb added this to the Debugging enhancements milestone Oct 25, 2025
@mateoconlechuga mateoconlechuga merged commit 5330ab7 into CE-Programming:master Jan 18, 2026
10 checks passed
@adriweb adriweb deleted the execute-until-ret branch January 18, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants