← Share a RAM window between DLLs
Commands
Share a RAM window between DLLs
Build both DLLs and boot the survey disk
mkdir -p build
out=$(mktemp -d build/cache-survey.XXXXXX)
compiler=./zig-out/bin/zp64c
"$compiler" compile docs/tutorial-examples/cache-terrain.zp64 -o "$out/terrain.prg"
"$compiler" compile docs/tutorial-examples/memory-plan-math.zp64 -o "$out/math.prg"
"$compiler" compile docs/tutorial-examples/cache-survey.zp64 -o "$out/survey.prg" \
--dependency-module "terrain_rules=$out/terrain.prg.zpmod.json" \
--dependency-relocsim "terrain_rules=$out/terrain.prg.zpmod.relocsim.json" \
--dependency-module "fixed_math=$out/math.prg.zpmod.json" \
--dependency-relocsim "fixed_math=$out/math.prg.zpmod.relocsim.json"
c1541 -format 'survey cache,01' d64 "$out/survey.d64" \
-write "$out/survey.prg" boot \
-write "$out/terrain.prg.zpmod.disk.prg" terrain \
-write "$out/math.prg.zpmod.disk.prg" fixedmath
x64sc -reu -reusize 256 -autostart "$out/survey.d64:boot"