Open
Conversation
Files containing the logging macros and an option to log to a file (when the Serial logging code can't be used)
Switch some of the Serial.print logging to the logging macros so they can be turned off when starting the serial communication for the debugger
Lots of changes for the DeZog interface: - global variable to make the emulator ready for DeZog connection - new screen "Debugger" will start the emulator with the variable set - serial debugging will be turned off - PacketHandler changes behavior based on the variable and processes DeZog commands - RST 08 is used as interrupt/breakpoint command and stops execution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented serial protocol for communication with DeZog for 48K. Since serial is used, the regular serial logging is turned off by a setting when going through the new Debugger menu entry.
Breakpoints are implemented which allows step into/over, run to cursor.
Pause is implemented in code, but DeZog doesn't send it to zxnext, so for now it's not possible to pause when running unless the code reaches a breakpoints. I have added a new remote type in DeZog, but the code is not good for a pull request yet. An option would be to use the boot button menu and request a pause from there. This wouldn't require a modification for DeZog.
Watchpoints are not implemented and may be difficult to implement but I haven't looked too much into it.
For a debugging session DeZog should be configured to use the
zxnextremote type (see below for an example), the Debugger emulator should be started on the Rainbow, and the session can be started with F5.