Part of the official firmware for the Agon Console8
This firmware is intended for use on any Agon Light compatible computer. As well as the Agon Console8, it has been tested on the Olimex Agon Light 2.
This version of agon-mos may differ from the official Quark firmware and contain some extensions, but software written for the official Quark firmware should be fully compatible with this version.
Agon is a modern, fully open-source, 8-bit microcomputer and microcontroller in one small, low-cost board. As a computer, it is a standalone device that requires no host PC: it puts out its own video (VGA), audio (2 identical mono channels), accepts a PS/2 keyboard and has its own mass-storage in the form of a micro-SD card.
https://www.thebyteattic.com/p/agon.html
The Agon Console8 is a fully compatible variant of the Agon Light from the same designer, with the addition of a built-in PS/2 mouse port and two Atari-style DB-9 joystick ports.
The MOS is a command line Machine Operating System, similar to CP/M or DOS, that provides a human interface to the Agon file system. It runs on the eZ80 CPU of the Agon.
It also provides an API for file I/O and other common operations for BBC Basic for Z80 and other third-party applications.
CAT
or .
commandLOAD bbcbasic.bin
RUN
Reporting issues and pull requests are welcome.
A Contributing guide will be added in due course.
The MOS is built using the Zilog Developer Studio II (ZDS II - eZ80Acclaim! version 5.3.5) tools.
You can download the ZDS II tools for free via the following link. The software contains an IDE, Debugger, C Compiler and eZ80 Assembler.
ZDS II is a Windows application. Development of the MOS for the Console8 has been conducted on a MacBook Pro with an M1Max CPU running Windows 10 for ARM in a Parallels VM. Other developers have used differing combinations of Windows, Linux and OSX, using VMs or Wine to run the ZDS II tools.
The ZDS II tooling will compile the firmware and produce a MOS.hex
file. Unless you are programming the eZ80 on your Agon directly using ZDS II (see below), you will need to convert this to a .bin
file to flash to the eZ80.
To convert the .hex
file to a .bin
file, use the Hex2Bin utility.
MOS can be tested out without the need to reprogram your Agon Console8 or Agon Light by using the Fab Agon Emulator.
To test using the emulator, create a new MOS.bin
file and place that into the emulator directory and run the emulator. The emulator will automatically load the MOS.bin
file and run it.
It should be noted that the emulator is not 100% accurate, so some features may not work as expected, but it is a very close simulation.
Unless you are using the ZDS II tools to program the eZ80 directly, it is recommended that you test your MOS on the emulator before testing on real hardware.
The MOS can also be flashed on your device using the agon-flash Agon MOS firmware upgrade utility. This is a command line utility that runs on the Agon itself, and can flash MOS to the eZ80 from a file stored on your SD card.
In the event that you flash a MOS that does not work, you will need to revert your Agon back to a known working version. With the exception of the Agon Console8, this can be done using the agon-vdpflash utility.
Recovery for an Agon Console8 requires the use of a second external ESP32-based machine. Guidance on this, and a tool for recovery, can be found in the Agon Console8 Recovery Tool repository.
It is recommended when using the agon-flash utility that you use a filename other than MOS.bin
for your new experimental MOS version, and keep a known working version of the MOS.bin
file in the root of your SD card, as this is the file that the agon-vdpflash utility uses.
To program the eZ80 directly using ZDS II you will need a Zilog Smart Cable to connect to the ZDI connector on the board. These are available from online stockists such as Mouser or RS Components. Please note however that development of the MOS for the Console8 has not been conducted using a Zilog USB Smart Cable.
There are three compatible cables with the following part numbers:
ZUSBSC00100ZACG
: USB Smart Cable (discontinued)ZUSBASC0200ZACG
: USB Smart Cable (in stock - this requires ZDS II version 5.3.5)ZENETSC0100ZACG
: Ethernet Smart Cable (in stock)Important! Make sure you get the exact model of cable; there are variants for the Zilog Encore CPU that have similar part numbers, but are not compatible with the Acclaim! eZ80 CPU.
Any custom settings for Agon development is contained within the project files, so no further configuration will need to be done.
Other options for programming the Agon are available, and the community will be happy to advise on these.
The Agon Platform documentation can now be found on the Community Documentation site. This site provides extensive documentation about the Agon platform firmware, covering both Quark and Console8 firmware releases.
There is a vibrant and active community on Discord, where you can get help and advice on developing for the Agon.
There is also the Agon Programmers Group on Facebook.
This code is released under an MIT license, with the following exceptions: