Skip to content

Conversation

@sql-hkr
Copy link
Owner

@sql-hkr sql-hkr commented Nov 12, 2025

This pull request makes a targeted fix to the CPU step tracing logic in src/tiny8/cpu.py. The change ensures that the recorded step trace accurately reflects the program counter (PC) and source line before instruction execution, improving the reliability of trace data for debugging and analysis.

Improvements to step trace accuracy:

  • The step trace now records the pre-execution program counter (pre_exec_pc) and corresponding source line, rather than the post-execution PC, ensuring that trace entries align with the instruction about to be executed.

@sql-hkr sql-hkr linked an issue Nov 12, 2025 that may be closed by this pull request
@sql-hkr sql-hkr merged commit fc6f7b3 into main Nov 12, 2025
4 checks passed
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@sql-hkr sql-hkr deleted the fix/terminal-highlight branch November 12, 2025 15:20
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.

Confusing instruction line highlight

3 participants