Fix target joystick calibration arguments and scene transitions

Avoid a demonstrated CMOC -O2 removed-index-reload error with independent calibration and position pointers. Keep established joystick readiness across menus, stabilize shared fire/keyboard scans, and protect input sampling from IRQ interference.

Ship pristine QUADPSL04.DSK. Native right-port emulated analog/button checks pass for both directions, four lasting T-piece turns, and steering after keyboard resume. Host input/store/rules/video regressions and unchanged memory guards pass. Preserve personal score disks and record physical/128 KB/audio limits.
This commit is contained in:
Brian Holman committed 2026-11-11 14:26:06 -07:00
1 parent 2e163049d1
commit a07c41555a
22 files changed
+446 -100

No files matched your search

+12
View File
@@ -53,3 +53,15 @@ positions. The palette (11 bytes) and preference-validation table (15 bytes)
use low static data; they are only read. Optional video timing instrumentation
is enabled only by QUAD_PROFILE and is unavailable in Release. Every profile
build still needs the unchanged link guard; profile configurations are unqualified.
Build 03 additionally moves the seven effect-duration bytes into low static
storage (read only in use), iterates packed captions with a byte pointer, and
compacts equivalent input handling/status text. Code/const end $7ACD; static
end $13FD; reserved stack remains 1024 bytes. Full bcontrol position sampling
was tried but exceeded the guard; the delivered path retains standard coco.h
position reading with public interrupt protection.
Final build04's independent calibration/position pointers avoid the target
compiler indexing defect. Code/const end $7AD4 (44 bytes free), static end
$13FD (3 bytes free). The original MMU window, section limits and 1024-byte
stack reserve are unchanged. Memory qualification remains actual-128-KB pending.