Cool! Does it include a FORTH 6502 assembler written in FORTH?
I love writing assembly code in RPN with Forth macros!
You can write FORTH code with loops and conditionals and any kind of logic and parameters, that dynamically assembles machine code! Much better than your typical macro assembler.
Here's some 6502 assembler for an Apple ][ SUPDUP terminal emulator that does ram card bank switching:
http://www.donhopkins.com/home/archive/forth/supdup.f
Here's some Forth 68k assembler that draws lines on a weird Sun-2 CGONE graphics board.
http://www.donhopkins.com/home/archive/forth/cg/bline.f
Mitch Bradley's 68k forth lets you use interactive conditionals and loops in the top level outer interpreter!
I think he wrote a paper about that feature, which I might be able to dig up ... Here's something related he wrote about refactoring the outer interpreter, but not what I'm thinking of:
https://groups.google.com/forum/#!topic/comp.lang.forth/lKQj...
> Does it include a FORTH 6502 assembler written in FORTH?
https://github.com/scotws/TaliForth2/blob/master/docs/manual...
> Currently, there is no assembler included. The plan is to include a simple assembler based on Simpler Assembler Notation (SAN).
It does include a disassembler: https://github.com/scotws/TaliForth2/blob/master/docs/ch_dis...
The author has written a 6502 assembler in gforth: https://github.com/scotws/tasm65c02
Here is a document describing the notation: https://docs.google.com/document/d/16Sv3Y-3rHPXyxT1J3zLBVq4r...
I got a quick reply from Mitch Bradley!
Yes I wrote a paper but I probably can't find it. The easiest place to look would be in the Open Firmware source.
https://github.com/MitchBradley/openfirmware/blob/master/for...
The magic is all in +level and -level. Search for those in kernel.fth to see other places they are used to achieve a similar effect, e.g. in abort"
For an alternative but effectively equivalent formulation, see:
https://github.com/MitchBradley/cforth/blob/master/src/cfort...
and
https://github.com/MitchBradley/cforth/blob/master/src/cfort...