CH12_NARROW_PEER_CURSOR_INSPECTION.md
Original bytes preserved. This is a browser-readable view.
# Chapter 12 — authorized narrow benchmark cursor inspection Status: NARROW PEER EXPOSURE, USER AUTHORIZED Scope: shared decimal-N input cursor path only ## Boundary honored The inspection was limited to Chapter 11 `app.s` cursor/N-input code and `defs.s` constants needed to understand the blinking-cursor difference. No Queens recursion, Hanoi recursion, VT implementation, report construction, or other peer source was opened. ## r005 build The external build consumed the exact r005 source and produced a 65,536-byte ROM. The Rev. 0.45 listing reports `ASSEMBLY COMPLETE, NO ERRORS FOUND`. Human runtime observation: the cursor still did not visibly blink. ## Relevant benchmark differences The peer N-input path differs from Entity B r005 in three tightly related ways: 1. The peer's blocking N-input wait first uses a raw hardware readiness gate that does **not** call `OFFCHK`. 2. Only after an ordinary key is physically present does it invoke C-ROM `CRTKY` for decoded key semantics. BRK is recognized at the raw gate. 3. The peer positions and re-enables the native cursor at the end of every N-input redraw. Its startup also initializes deterministic C-ROM keyboard mode (`KEYMD=0`). Entity B r005 already matched the peer's display initialization (`SYSCLR -> SETLCD -> SET4LN` plus the low-level screen initialization), so the remaining difference is not display geometry. ## Why this matters Entity B r005 enabled the cursor and then entered `WAIT_KEY`. `WAIT_KEY` repeatedly calls Entity B's BOOT-derived `INKEY`, and `INKEY` begins with `CAL OFFCHK`. That means the firmware is re-entered continuously while the cursor is expected to remain visibly active. The peer deliberately avoids that path during typed input. The allowed pre-recursion Chapter 08 corpus independently contains the same raw-ready discipline: wait in a card-side hardware scanner without `OFFCHK`, then enter C-ROM `CRTKY` only when a key is ready. Thus the peer inspection identified which already known machine behavior mattered; it did not supply a recursion or application algorithm. ## r006 response r006 changes only the N-editor input/cursor lifecycle: - initializes `KEYMD=0`; - uses an N-editor-specific raw readiness gate with no `OFFCHK`; - calls `CRTKY` only for an ordinary ready key; - returns BRK directly to the existing normal-BRK path; - re-enables the cursor after every N-editor redraw. All recursion, VT, report, pagination, retained-N, and other application behavior is left unchanged. The hypothesis is now precise: if r006 blinks, the missing condition was not cursor enable or display geometry, but the firmware interaction performed continuously by the old polling loop.