Let's setup a 48K ZX Spectrum dev environment in GitHub Codespaces - with DeZog 🧮
Let's make this
- Easy to win
TL:DR
- Make a repo based on this repo template
- Open the codespace
- Setup the SjASMPlus to compile
Ctrl-Shift-D
to debug- The ZSim emulator should open and show a little green square
Ctrl-Shift-B
to build- Run the unit tests
- There should be the 2 unit tests for the square showing
Currently the codespace (i.e. linux docker) setup of the SjASMPlus compiler is a manual task.
If you pull this repo to a Windows desktop, it should just run because the Windows exe is already in the tools folder.
- Open the bash terminal and run these step by step:
unzip tools/sjasmplus.1.18.3.zip -d tools
cd tools/sjasmplus-1.18.3
make clean
make
sudo make install
- Delete the
tools/sjasmplus-1.18.3
afterwards
- Build with
Ctrl-Shipt-B
- Debug with
Ctrl-Shift-D
orF5
- Currently you need to build and then run the unit tests
Stuff I need to do to make this repo 'Just-Work(tm)'
- Document the 'open this in GitHub Codespaces' better - inc screenshots
- Make a 'SjASMPlus Setup' task
- Find out why 'Run unit tests' doesnt automatically build
Maziac-Dezog
- https://github.com/maziac/DeZog
- https://github.com/maziac/z80-sample-program
- https://github.com/maziac/DeZog/blob/main/documentation/Usage.md
- https://github.com/maziac/DeZog/blob/main/documentation/UnitTests.md
- http://www.breakintoprogram.co.uk/computers/zx-spectrum/assembly-language/z80-development-toolchain
SjASMPlus - make sure you get the right one!
Awesome Z80 tutorial links
- https://bobs8bb.wordpress.com/
- https://chuntey.wordpress.com/tag/tutorial/
- https://sol.gfxile.net/z80/index.html
- https://pobtastic.github.io/hobbit/
- The Maziac developer for Dezog
- z00m for SjASMPlus
- The folks at Microsoft for VS Code
- The folks at GitHub for Github and GitHub Codespaces
- And everyone else who helped my make this work-in-progress possible
If you find this repo helpful, go be nice to someone. Pay it forward 🙂
Cheers!