KC85/2: Debug UI for Z80 chips (CPU, PIO, CTC)#10
Open
gunterhager wants to merge 28 commits intofloooh:mainfrom
Open
KC85/2: Debug UI for Z80 chips (CPU, PIO, CTC)#10gunterhager wants to merge 28 commits intofloooh:mainfrom
gunterhager wants to merge 28 commits intofloooh:mainfrom
Conversation
Owner
|
You are crazy, but in a good way ;) I'm currently on different zig stuff (wrapping sokol-shdc in a zig package), but I have a week of vacation ahead, will hopefully find some time to have a look. |
Owner
|
FYI with the Dear ImGui 1.92.0 update there will most likely be changes required in places where textures are rendered in the UI: https://github.com/floooh/sokol/blob/master/CHANGELOG.md#29-jun-2025 |
In Zig 0.14+, addIncludePath was moved from Build.Step.Compile to Build.Module. Update the sokol/cimgui dependency hashes to latest. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- src/chips/z80dasm.zig: stateless Z80 disassembler (port of z80dasm.h);
callback-based memory access, handles all prefixes (CB/DD/ED/FD)
- src/ui/ui_dasm.zig: standalone scrollable disassembler window with
navigation back-stack and jump-target buttons for CALL/JP/JR/RST/DJNZ
- src/ui/ui_dbg.zig: comptime-parameterized CPU debugger (bus+cpu types);
step-into/over, breakpoints, execution history, F5/F6/F7/F9 hotkeys
- Integrated into KC85: per-tick execWithDebug() loop, Debug menu wired up
All UI is reusable for other emulators (Namco, Bombjack) via runtime
read_cb and comptime Type(.{.bus=..., .cpu=...}) instantiation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Z80 debugger UI
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.
I started to implement debug UI similar to the C version of
chips. As a first step I implemented the debug UI for the Z80 chips (CPU, PIO, CTC) that are used in the KC85/2.Not sure if you want to pull this already in your main branch but I would be very happy with a code review. 😸
Let me know what you think.