This is a GitHub pages site with learn-to-code content using an 8-bit computer emulator and the BASIC programming language that I learnt to code with.
The pages exist in the src
directory. The static website is built using eleventy
.
Setup:
nvm use
pnpm install
Then run the dev server:
pnpm dev
We use the floooh project, which provides the emulator for the CPC6128. A compiled version of the emulator
is already provided in the js
folder so you don't need to build floooh yourself unless you want to.
We've create a workspace in floooh-workspace
and added the chips-test
project as a submodule.
To clean the workspace after updating chips-test
, if you need to, delete all of the folders except chips-test
in the workspace.
To setup the build environment
cd floooh-workspace/chips-test
./fips setup emscripten
cd floooh-workspace/chips-test
./fips set config wasm-ninja-release
./fips build
The build will download a bunch of dependencies into the workspace if this is a clean build. The next builds will be faster.
To use the version you just built:
cp ../fips-deploy/chips-test/wasm-ninja-release/cpc* ../../static/js/floooh/