You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seven inline comments on PR #130, all addressed:
1. **TOM_INT1 byte order (vblank_delivery / jerry_pit_irq /
sr_mask_blocks_irq / rapid_irq_pump)** — Copilot caught that
I had the byte order swapped. Per src/tom/tom.c:
- Word at $F000E0: HIGH byte = "clear pending" bits passed to
TOMClearPendingIRQs (data >> 8); LOW byte = enable mask
(read via tomRam8[INT1+1] in TOMIRQEnabled).
- I was writing `$0100` to enable VIDEO when I needed `$0001`.
Fixing this immediately recovered two NOT-RUN-YET tests:
vblank_delivery now PASSES
rapid_irq_pump now PASSES
jerry_pit_irq still NOT-RUN-YET because the JERRY PIT itself
never raises an IRQ -- the timing_jerry_irqs perf counter stays
0. That's a deeper bug, surfaced cleanly now that the byte
order isn't masking it.
2. **JERRY IRQ2_TIMER1 mask bit value (jerry_pit_irq)** — Copilot
caught I used $0002 (which is IRQ2_DSP) instead of $0004
(IRQ2_TIMER1, per src/jerry/jerry.h:36-38). Fixed.
3. **bsr_long_61ff.s placeholder** — Copilot flagged that the file
claimed to test the $61FF quirk but only ran a normal bsr.w.
Repurposed as a BSR.W *control* test (so the real $61FF test
in bsr_l_61ff_real.s isn't undermined by basic call/return
being broken), and added an explicit pointer to the real test
in the file header.
4. **run.c top comment offset** — said `0x100`, code reads
`0x100000`. Fixed comment.
5. **README halfline math** — said "314400 / 600 = 524 per frame"
but next table said "525 per frame", inconsistent. Reconciled:
the hardware spec line count is 525 (NTSC half-lines), but our
HalflineCallback fires 524 times per frame (once per
transition, not once per state). Both numbers are correct;
docs now spell out which is which.
6. **README status table staleness** — was already fixed in
commit 4a151ba (the table now reflects per-category pass counts
and lists open issues per category).
7. (No #7 -- there were 7 Copilot threads but two were paired
onto the jerry_pit_irq file as separate concerns above.)
Final status: 54 / 72 PASSing (was 52). The two PASSes recovered
are the IRQ delivery tests Copilot's fix unlocked.
Co-Authored-By: Claude Opus 4.7 <[email protected]>
0 commit comments