Skip to content

Add --trace flag to z88headless#2

Merged
Sakery merged 1 commit into
mainfrom
feature/z88headless-trace
May 14, 2026
Merged

Add --trace flag to z88headless#2
Sakery merged 1 commit into
mainfrom
feature/z88headless-trace

Conversation

@Sakery
Copy link
Copy Markdown
Owner

@Sakery Sakery commented May 14, 2026

Summary

Add a minimal --trace flag to z88headless.

Changes

  • Parse --trace from command-line arguments
  • Show Trace: enabled when active
  • Print one trace line before each cpu.step()
  • Include instruction number, current PC, and last opcode
  • Keep the change limited to tools/z88headless.cpp

Testing

  • Existing CI should build the project and run the current tests
  • Existing z88headless_help check should continue to pass

This supports the next debugging step toward automated OZ boot tracing.

- Minimal trace output before each instruction
- Shows instruction number, PC, and last opcode
- Activated with --trace command-line flag
- No changes to CPU logic or memory model
@Sakery Sakery merged commit 9e51b20 into main May 14, 2026
2 checks passed
@Sakery Sakery deleted the feature/z88headless-trace branch May 14, 2026 16:27
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.

1 participant