Aug 202017
 

No problem, really.

  1. Take an Arduino Uno.
  2. Use an emulator from Altair8800 emulator (under GPLv2). Not the whole code, just CPU emulation.
  3. Our HAL – Hardware Abstraction Layer can be really simple. My “virtual machine” has a 4kB ROM, mapped in 0x0000-0x0fff (PROGMEM) and an 1 kB RAM, mapped in 0x1000-0x13ff. You can resize RAM up to cca 1.5 kB)
  4. Virtual 8080 port 1 is mapped to the real serial port. Virtual port 0xFE is mapped to the built-in LED (just for fun)
  5. Take a source code for Tiny BASIC.
  6. Compile it via ASM80.com – online assembler. It needs two slight modification for MACRO.
  7. Make a binary version as basic.h
  8. Compile, upload, and voila, it works!
  9. Compile TinyBASIC version 2 too (change port numbers is needed)
  10. Finally: Publish it all on GitHub.

Have a nice day

Sorry, the comment form is closed at this time.

banner