This is a simulator for a Little Man Computer.
It can be used as an educational toy.
The screen consists of 4 parts:
You enter machine codes into memory and run it:
When the program is running:
When the input dialog is shown:
xx
to the accumulatorxx
from the accumulatorxx
xx
into a cell pointed by the accumulatorxx
contents into accumulatorxx
xx
if accumulator is not negativexx
if accumulator is zeroOther instructions are no-ops.
Also, cell #99 on every step contains a random number.
Add two numbers:
901 306 901 106 902
Blink a LED:
507 905 915 208 905 915 600 12 2
Move a dot:
506 903 913 904 107 601 0 1
Multiply numbers:
MUL = [901,320,901,321,522,120,322,521,223,321,804,522,220,322,902,0,0,0,0,0,0,0,0,1]
Play music from a list of notes (indirect addressing):
510 999 708 907 510 111 310 601 0 0
20 1 0 0 0 0 0 0 0 0
52 52 52 22 32 32 24 72 72
62 62 55 0
Vote | Comment | Date |
---|---|---|
No votes yet :( | ||
File | Last edited | Size |
---|---|---|
__init__.py | 2024-02-17 00:37:51 | 9.85 KiB |
README.md | 2024-02-17 00:37:51 | 2.59 KiB |
icon.png | 2024-02-17 00:37:51 | 2.87 KiB |