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
{{ message }}
Repository navigation
Commit 1af6a11
Browse filesBrowse the repository at this point in the historyBrowse files
zx81sd: bank large data tables into block 7, --asm build option
Programs whose compiled size exceeds the ~32KB code/sysvar/heap budget
(sprite bitmaps, screen dumps, sample tables...) can now relocate big
constant data out of the way via a manual ORG into block 7 ($E000-
$FFFF, previously unused). Adds block 7 to the boot page-map, and
teaches split_sd81.py to skip packaging/loading pages that come out as
100% assembler gap-filler (the unused span this creates between code
and the relocated data), instead of wastefully shipping/loading them.
build_sd81.py gains --asm to also emit the generated assembly listing
(a second zxbc.py pass), useful for tracing bugs live against the .map.
Documents a related gotcha found while doing this on Mario GW:
relocating a sub's asm body with ORG doesn't move where @name resolves
to, since the compiler's own entry label is emitted before the ORG
takes effect (PRECAUTIONS.md section 9, cross-linked from
PORTING_GUIDE.md step 6).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments