Little man computer implemented in Python as a study of how it works.
- Python 3.9 (not tested on earlier versions)
-
Put your assembly code in
assembly_program.s
-
Run
demo.py
For the best experience, run it with debugger to see how the program counter, registers and memory work while the program runs.
The implementation supports:
- The following instructions
- ADD
- SUB
- STA
- LDA
- BRA
- BRZ
- BRP
- INP
- OUT
- HLT
- DAT
- Labels
- Comments