/BadgerFrotz

Frotz Z-machine ported to a Raspberry PI Pico designed to run on the ebadger LodeRunner platform

Primary LanguageC

BadgerFrotz

Frotz Z-machine ported to a Raspberry PI Pico designed to run on the ebadger LodeRunner platform

There are a few components in this project that combined create something fun and new.

  1. VGA on the Pico - mostly taken from https://vanhunteradams.com/Pico/VGA/VGA.html
  2. An 80 column terminal including font rendering and PS/2 keyboard input
  3. Frotz Z-Machine port. Started with https://github.com/DavidGriffith/frotz and rewrote file system, input, output, save/restore routines

The project demonstrates how to utilize the Pico's flash memory in a way that works with multiple cores and the DMA/PIO generating the VGA signal. Writing to the flash is moderately painful since no code can be running from the flash while writing to it. As such, all running code must be in RAM, DMA can't be running. The project demonstrates how to write to flash and then reestablish the VGA signal.

0

0

It should be failry easy to adapt the code to custom hardware, or to a Pimoroni VGA board, etc...

If you have an ebadger LodeRunner appliance, it will run without any change on that device. Send email to eric.badger@gmail.com for more info on the hardware if you're interested in buying one to support this project.

FVkIgqnUYAAFe1m FVkI9tuVUAIgpaC

LodeRunner hardware demonstrated here:

https://blog.pishop.co.za/raspberry-pi-pico-emulates-6502-computer-and-runs-loderunner/

and here

https://twitter.com/ebad73/status/1548135753720348673?s=20&t=SdgSOiQ7SnGn88zoFUkfwA

If you create a derivative build, please share photos! Please feel free to contribute changes

There are various instructions on the web on how to set up a build environment in Windows with VSCode to build C++ for the Pi Pico For example: https://projects-raspberry.com/setting-up-the-raspberry-pi-pico-for-c-c-development-on-windows/