Skip to content

Forth system for RC2014 built by modern toolchain

Notifications You must be signed in to change notification settings

tocisz/TC2014-FORTH

 
 

Repository files navigation

TC2014-FORTH

This Forth system is based on an old fig-Forth derivative for Zilog Z80.

I did some modifications I liked:

  1. Don't mark end of word name with +0x80. You can use Unicode in word names if you like. It's (still) case sensitive unlike most of Forth systems.
  2. All words are lowercase. I find it more aesthetically pleasing.
  3. Compiled by the standard GNU Assembler.
  4. Python is used as a macro generator. It can generate assembly from word definitions like word("FIRST:first", ": ufirst @ ;s"), which makes reading and modyfiying source code easier.
  5. With Python used for generating word definitions it's possible to generate graph of dependencies between words.
  6. Cleanup of hacks for defining vocabularies that were used in the Forth system on which it's based. Now forth is the last word and its copied to RAM, so current address can change witin it.
  7. More standard words instead of VLIST. Added vocs.
  8. Restore fig-Forth create and <builds.
  9. Simpler sp! and rp!.

RAM image

RAM image has base address 0x8400 and can be loaded by SCM or HLOAD enabled BASIC for RC2014.

About

Forth system for RC2014 built by modern toolchain

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 64.4%
  • Forth 19.7%
  • Assembly 11.6%
  • C 2.2%
  • Makefile 1.5%
  • Shell 0.6%