Skip to content

weibell/python-cardiac-emu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-cardiac-emu

codecov

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

Resources and inspiration

About

A simple CARDIAC interpreter written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages