SimPlE CompuTER - A Little Man Computer written in Python 3
./specter.py -c
- Type in filename (or use
-f
command line flag) - Have fun!
./specter.py
- Select file
- Press
Run
- Press
Run to Halt
- Have fun!
- When the
input
field is "selected", type in a integer value between-500
and499
and pressSubmit
or press Enter.
Included examples (in the examples
folder), sorted by relative complexity into three catagories:
- Easy
add.lmc
- Add two numbersecho.lmc
- Echos user input until the input == 0infinite.lmc
- Prints 1 for eversub.lmc
- Subtract two numbers
- Medium
counter.lmc
- Counts down from the users inputdivide.lmc
- Divide two numbersmultiply.lmc
- Multiply two numberssquare.lmc
- Squares input until input == 0
- Hard
fib.lmc
- Little man's Fibonacci, a traditional challengetest.lmc
- A self-test
See the wiki for documentation, issues for bug reporting / feature requests and pull requests for contributing code.
GPL 3 or later
- https://en.wikipedia.org/wiki/Little_man_computer -
specter
follows the instruction set as far as possible - https://github.com/matsjoyce/specter/wiki - documentation