← Plan a program that uses disk, REU, and RAM
Commands
Plan a program that uses disk, REU, and RAM
Build both programs, package the disk, and boot
mkdir -p build
score_build=$(mktemp -d build/score-tutorial.XXXXXX)
compiler=./zig-out/bin/zp64c
"$compiler" compile docs/tutorial-examples/memory-plan-math.zp64 -o "$score_build/math.prg"
"$compiler" compile docs/tutorial-examples/memory-plan.zp64 -o "$score_build/score.prg" \
--dependency-module "fixed_math=$score_build/math.prg.zpmod.json" \
--dependency-relocsim "fixed_math=$score_build/math.prg.zpmod.relocsim.json"
c1541 -format 'memory plan,01' d64 "$score_build/score.d64" \
-write "$score_build/score.prg" boot \
-write "$score_build/math.prg.zpmod.disk.prg" fixedmath
x64sc -reu -reusize 16384 -autostart "$score_build/score.d64:boot"
Boot a disk without the scoring DLL
c1541 -format 'missing dll,02' d64 "$score_build/missing.d64" \
-write "$score_build/score.prg" boot
x64sc -reu -reusize 16384 -autostart "$score_build/missing.d64:boot"