This is a test program that demonstrates coding the Agon Light in C. It uses the CE Toolchain and AgDev - an Agon Light port for it. Since the VDP integration is not yet finished in this port, I've added two files to this repo that includes all the functions (including the missing ones):
vdp.c
VDP function call implementationvdp.h
Header file for all VDP functions
This two files will become probaly obsolete in future when AgDev contains all of the functions. But for now, it was an easy way to get a fast and complete C toolchain for the Agon Light
Let's assume you download all to your home folder:
- Download CE Toolchain from here, and copy it to your home folder. Rename it to CEDev.
- Dowload AgDev from here and copy it also to the home folder. Rename it to AgDev.
- Use your terminal and type
cp -R -f ~/AgDev/ ~CEDev
Last but not least, add it to your PATH environment variable: export PATH=~/AgDev/bin:$PATH
To build the test program, you can now use make
. While make V=1
builds in it verbose mode, so you see the different build steps.
If all goes well, you have after a file called test.bin
in the bin
folder.
To test it out, I recommend you use the Fab Agon Emulator and copy test.bin
to the sdcard
folder of the emulator. Or even better, copy it to your SD Card and test it on your Agon Light itself!
No matter which variant you prefer, you can now simply load and run the program with:
load test.bin
run
Note: If you are in BBC Basic, you must of course exit first by type in *bye
HAVE FUN!
Of course, it's not all done by myself. Instead, I've looked at many examples at first to get an idea. Very helpful for this was the Mandelbrot example from Jeroen Venema. He uses the Zilog Developer Studio, but as far as I know it's only available for Windows, while I use macOS.