Skip to content

Add BRK breakpoint dispatch to the break monitor - #40

Open
mbrukner wants to merge 2 commits into
wildbitscomputing:masterfrom
mbrukner:nmi-break-transparency
Open

Add BRK breakpoint dispatch to the break monitor#40
mbrukner wants to merge 2 commits into
wildbitscomputing:masterfrom
mbrukner:nmi-break-transparency

Conversation

@mbrukner

@mbrukner mbrukner commented Sep 1, 2026

Copy link
Copy Markdown

Summary

This builds on #37 by allowing emulation-mode BRK instructions to enter the same break-monitor flow as a Foenix/SysRq break.

  • detect BRK from the stacked processor status in the IRQ handler
  • dispatch BRK through the existing monitor save/resume path
  • mark BRK-originated entries in the monitor header
  • update JR2 SysRq detection for current $A2 machine IDs
  • reserve banks $3b–$3d for monitor state and remove conflicting kernel-side screen preservation

Testing

  • make jr.bin
  • extensive BRK handling testing

@mbrukner
mbrukner force-pushed the nmi-break-transparency branch from c1d1d99 to e8817d1 Compare September 1, 2026 08:44
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