Find Related products on Amazon

Shop on Amazon

MilliForth-6502: The smallest Forth real programming language for 6502

Published on: 2025-05-25 04:04:40

A milliForth for 6502 "A Forth in 328 bytes — the smallest real programming language ever, as of yet." The milliForth1 is a review of sectorForth2, and smaller than sector Lisp3 The miniForth4 is another Forth to use in a boot sector of less than 512 bytes. Yes, bytes. But those are for a x86 16-bit CPU. How minimal could be it for a classic 6502 8-bit CPU ? Two essentially different CPUs, a 16-bit x86 based on complex registers and opcodes, and a 8-bit 6502 using page zero as common registers and page one as hardware stack. Inner Interpreter The FIG-Forth (1980) for 6502 uses Indirect Thread Code (ITC) as inner interpreter. The miniForth, sectorforth and milliForth use Direct Thread Code (DTC) This Forth for 6502, will be was done using two models: with classic Direct Thread Code (DTC) and with Minimal Thread Code (MTC) (later we will compare both, but DTC will win for less size ) This project is also used to verify standart Direct Thread Code against variations of Minimum ... Read full article.