A Tiny Forth for the 6502: Under 600 Bytes

2025-03-28
A Tiny Forth for the 6502: Under 600 Bytes

This article details a highly minimized Forth implementation for the 8-bit 6502 CPU, achieving a size of under 600 bytes. The author compares two interpreter models: Direct Threaded Code (DTC) and Minimal Threaded Code (MTC), opting for DTC for its smaller size. The project focuses on size over performance, aiming to verify standard DTC against MTC variations. The resulting Forth includes core primitives and is tested with `my_hello_world.FORTH`, demonstrating functionality.

Development