SimPlE CompuTER - A Little Man Computer written in Python 3
./specter.py -c- Type in filename (or use
-fcommand line flag) - Have fun!
./specter.py- Select file
- Press
Run - Press
Run to Halt - Have fun!
- When the
inputfield is "selected", type in a integer value between-500and499and pressSubmitor 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 -
specterfollows the instruction set as far as possible - https://github.com/matsjoyce/specter/wiki - documentation
