Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z80/z80dasm.cpp: Switched *R (LDIR, OTIR, etc) debugger flag to STEP_OVER #13451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

holub
Copy link
Contributor

@holub holub commented Mar 7, 2025

STEP_COND on repeatable instructions doesn't allow to skip execution with F10
STEP_OVER is more reasonable for this instructions as allowed to take advantage from F10/F11

Per my understanding that should close match expectation:
static constexpr u32 STEP_OVER = 0x20000000; // this instruction should be stepped over by setting a breakpoint afterwards

@cuavas
Copy link
Member

cuavas commented Mar 12, 2025

I think at some point in the past, at least djnz did have the “step over” – it apparently changed in c759722. @ajrhacker and @galibert can you explain how the flags are supposed to be used for instructions like this? Is it supposed to be possible to skip over these things when they use the STEP_COND flag?

@cuavas
Copy link
Member

cuavas commented Mar 12, 2025

Is the gni debugger command on a looping instruction supposed to run until the instruction falls through?

@holub
Copy link
Contributor Author

holub commented Mar 12, 2025

The problem with djnz it can used either as loop with back reference or as "conditional jp" and jump forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants