I did this via a fork, as I haven't yet figured out how to create a build environment that's separate from rst's work. The git repo is available at https://github.com/blippy/circle. Go to subdirectory sample/40-tinybasic.
Build the project in the "usual way". You'll probably need to set your keyboard up if you aren't using a German one. Here's my top-level Config.mk file:
Code: Select all
# For QEMU
# https://www.raspberrypi.org/forums/viewtopic.php?f=72&t=90130&start=250
DEFINE += -DNO_PHYSICAL_COUNTER -DUSE_QEMU_USB_FIX
RASPPI=2
DEFINE += -DDEFAULT_KEYMAP=\"UK\"
Code: Select all
10 for i = 1 to 10
20 print i
30 next i
Code: Select all
run
It has been built for QEMU. I haven't yet tested it out on an SD card.
File IO has not yet been implemented.
The project was conceived as a kind of retro programming environment with a simple programming language. Now you can party like it's 1979.
It's a jumping-off point for adding file io, framebuffer stuff, maybe tones, and all that good stuff.
The version of Basic I used was TinyBasic Plus. It has a long pedigree, going back to the May 1976 issue of Dr. Dobb's Journal. Other people were involved, like a port to the 68000, and the Arduino.
I really love the idea of very old projects being revitalised.
Enjoy!