samsaga2 / samforth

Forth for MSX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You need:
- python 2.6 (http://python.org/)
- sjasm (http://www.xl2s.tk/)
- openmsx (http://openmsx.sourceforge.net/)

Run the examples with:
# make test
# make test2

Files:
- samc.py: the forth compiler
- samforth.begin: the asm header
- samforth.end: the asm footer
- kernel.fs: core words
- bios.fs: some bios calls
- test.fs: simple example using screen 1
- test2.fs: simple example using screen 2
- gforth.el: a modified version of gforth mode for emacs (added asm: ;asm c: ;c)

Usage:
python samc.py < example.fs > example.asm
sjasm -j example.asm example.rom

The compiler is far from a complete version of forth.

For more info read kernel.fs, test.fs and test2.fs sources.

About

Forth for MSX


Languages

Language:Forth 43.9%Language:Emacs Lisp 43.3%Language:Python 12.4%Language:Makefile 0.4%