python-cardiac-emu
A simple CARDIAC interpreter written in Python
Properties
- Emulates programs written for the CARDIAC architecture
- Ignores behavior left undefined in the specification to keep things simple (e.g., no out-of-bounds checks)
- No dependencies, just plain Python 3.6+ (minimum Python version due to variable annotations)
Caveats
- No explicit support for negative memory cells
- No exception handling: Buggy programs can crash the emulator
- No debugging tools
Usage
$ python3 main.py example_programs/powers_of_2.txt
001
002
004
008
016
032
064
128
256
512