draw_view(vx, vy) in src/view.s: column loop with the 23 rows unrolled and
self-modified map source addresses. Map bytes are now their own screen codes
with the colour in the low nibble (approved change to M1.3: the lookup-table
version measured 22,754 PAL / 23,177 NTSC cycles, over one frame); this one
measures 14,962 / 15,131. Tile codes and helper macros in map.h, glyphs placed
per code with compile-time colour checks in charset.c.
Timing: CIA2 cycle counter (cycles.s), view_fast smoke check, VIEW_TIMING
border-bar build, smoke.ps1 -Video ntsc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Program $0801-$37FF (stack at top), charset $3800-$3FFF, 128x128 map
$4000-$7FFF, spare HIBSS $8000-$CFFF. ld65 fails the build on overflow;
main() also checks charset/map addresses at run time (MEMORY CLASH).
build: keep -O when a linker config is set and resolve the config path
against the repo root. Documented in docs/memory-map.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cc65 conio writes capital letters as screen codes 65-90, which collided
with the game glyphs at 64-69. Copy ROM codes 0-127 from the lower/upper-case
set and move the glyphs to 128-133. Spec Visuals decision and project.json
updated to match (approved by user). M0 smoke passes; manual check pending.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>