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
Debugger: Step-over WAIT can fail #1194
Comments
The reason for it stopping in the WAIT function is that the Debugger's So a crude fix would be to just up this max number of steps. But it'd be a better user experience to report that the step-over cmd stopped because it'd done the max number of steps. |
Why not move to 64 bit integers for all cycle related counting? |
This is a known issue. The 64K limit was placed to avoid the debugger "hanging" while it continues to run code. I don't have any problems with it being updated to say a 20-bit number. |
A safer version could log a message to the console every X cycles. Press
escape (or something) to stop the step over operation.
|
Not quite the same thing. Ignore my comment. |
That's not a bad idea Nick! i.e. Every 64K cycles print a warning to the console.
The hotkey is a little more complicated since it seems we should have two keys along with adding a new (sub-state) to the debugger:
|
You could just default to "keep stepping-over", so you only need ESC to cancel.
|
Repro:
|
Trivial fix addresses the CPU stopping inside WAIT with A=FF. g_nDebugSteps = 0xFFFFF; // GH #1194 I've requested feedback from Nox Archaist (Mark and qkumba via Discord) to see if they want/need a higher value. |
Screenshots showing new behavior in PR #1203 |
The fix from @Michaelangel007 was:
@Michaelangel007: this is assigned to you, so please close if you are happy that all work has been done. |
Thanks for the merge and summary! I bumped up the debugger version to 2.9.1.17 for this issue (db5b668) and updated the @tomcw When the next version of AppleWin is about to be released (1.30.15) I'll need to bump the debugger version to 2.9.2.0.
|
Repro:
JSR WAIT
($FCA8)PLA
.NB. Step-over succeeds for
JSR WAIT
for other values of A, eg. $78, $7F, $F0, $F8, $FD.But also fails for A=$FE (with $0E on the stack).
The text was updated successfully, but these errors were encountered: