Skip to content

Python N-Bit SUBLEQ Interpreter with eForth image

Notifications You must be signed in to change notification settings

howerj/subleq-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SUBLEQ OISC VM in Python

An N-Bit SUBLEQ Interpreter written in Python. For more information see:

65536 cells are initialized to zero if not set, reading cells before setting them outside of that range will result in a warning.

The program returns non-zero on failure, and zero on success.

The image provided contains a working, 16-bit, eForth programming language interpreter, see https://en.wikipedia.org/wiki/Forth_(programming_language) for more information on Forth (eForth being the dialect).

"make" is not required, but a Makefile is provided for convenience.

To run:

./subleq.py 16 eforth.dec

Type "words" and hit Enter to get a list of defined Forth functions.

Type "bye" or CTRL-D (CTRL-Z on Windows) to exit.

About

Python N-Bit SUBLEQ Interpreter with eForth image

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published