monotron icon indicating copy to clipboard operation
monotron copied to clipboard

Add a programming language

Open thejpster opened this issue 7 years ago • 3 comments

Ideally you would be able to write a game or other application on the Monotron, using the keyboard (or UART input) and without changing the contents of Flash. But what programming language?

  • BASIC
  • PicoC
  • Lua
  • MicroPython?
  • Monkey
  • Something else?

The Flash ROM should provide generic routines (like put_character_on_screen) through a Software Interrupt (SWI) system.

thejpster avatar May 26 '18 19:05 thejpster

We don't really have the RAM to edit decent sized functions so we need a language we can tokenize / convert to byte code on a line-by-line basis, just like BASIC.

Rhai is an option, but the syntax might need a little tweaking to make it line based.

BBC Basic has some nice assembler support and plenty of examples.

We could also take BASIC and improve it a bit, with arrays and hashes, etc.

thejpster avatar Jul 20 '18 08:07 thejpster

Ported TinyBasic.

thejpster avatar Sep 15 '18 20:09 thejpster

Ported a 6502 emulator and Microsoft Enhanced BASIC.

thejpster avatar Oct 15 '18 16:10 thejpster