Forth in general
Special Forth Topics
65C02 Forth Assembler/Disassembler and Forth Decompiler
This version is a development influenced from several sources ...
- Article: c't magazin, 1984/01, p. 72, "65C02 Assembler in FORTH" (german)
- Article: Ragsdale, Forth Dimensions, Vol3, No5, "Forth 6502 Assembler"
Source 1 (from Simon Rowe's V-Forth for the VIC-20),
Source 2 (atariwiki.com)
- Book: Zech, "Die Programmiersprache FORTH", Appendix III, "Assembler in FORTH für 8085 und 6502", p. 276 (german)
This implemention was developed under
- C64 FORTH/79 (1983, Greg Harris, Performance Micro Products)
- "Conforms to FORTH-79 standard with double-number extensions." Nice
commercial package, with plenty of C64-dependent niceties like
graphics, disk access, screen editing included.
See also Forth Family Tree.
- asm65c02.4th Assembler for 65C02 Rockwell/WDC extended instruction set (2012)
There are 2 CPU modes (6502 vs. 65C02) which influence the conditional and structural words how they finally produce code.
WDC (Western Design Center, Inc.) special instructions are covered, too.
- asm65c02-test.4th Test suite (2012)
The compiled test words just test the proper code generation or just provokes error conditions.
Test T1C02 should break up while compiling after digit sequence "123" appears with "RANGE ERROR". This has to be fixed manually (insert FAR somewhere before or at the start of screen).
Verify the code generated with the words DISA or DECP (see below).
- disa.4th Disassembler (with 65C02 support) (2012)
Defines several disassembler words.
DISA ( addr len -- ) start disassembling
DI ( addr -- ) disassembles the next 26 bytes
CONT ( -- ) continue to disassemble from the last DI or DISA call.
- decp.4th Decompiler (with code word support) (2012)
Uses DISA (disassembler above) to show code words.
- asm6809.4th Assembler for 6809 (1985)
Based on an article from c't Magazin 84/07 p. 65, 6809-Assembler in FORTH, Dr. Erich Küster