← Read a complete C64 application

Commands

Read a complete C64 application

Boot the sample disk

Terminal
x64sc -autostart sampleapps/tictactoe/tictactoe.d64:tictactoe

Return to the guide

Compile and run the application from source

Terminal
zig build
mkdir -p build
./zig-out/bin/zp64c compile sampleapps/tictactoe/tictactoe_idiomatic.zp64 -o build/tictactoe.prg
x64sc -autostart build/tictactoe.prg

Return to the guide

Build both variants and inspect the hosted map

Terminal
mkdir -p build
./zig-out/bin/zp64c compile sampleapps/tictactoe/tictactoe_idiomatic.zp64 -o build/tictactoe.prg
./zig-out/bin/zp64c compile sampleapps/tictactoe_readyos/tictactoe_readyos.zp64 -o build/tictactoe-hosted.prg
python3 -m json.tool build/tictactoe-hosted.prg.zpmap.json

Return to the guide