A Python Package to simulate a MARIE architecture on any computer
Project description
MarieSimulator
Simulator for MARIE (Machine Architecture that is Really Intuitive and Easy)
Code Format
from marieSimulator import Marie, MarieReader as mr # import the marie and marie reader modules
marie = Marie(mr('trial')) # trial is the file containing Marie instructions
marie.run() # run the program
marie.show() # show memory in hex after running
Trial File
Load X
Add One
Store X
Halt
X, HEX 0000
One, HEX 0001
GUI Mode
from marieSimulator import MarieGUI, app
import sys
window = MarieGUI()
window.show()
sys.exit(app.exec())
Supported Opcodes (Instructions)
- Load X
- Store X
- Add X
- Subt X
- Input
- Output
- Halt
- Skipcond X
- Jump X
- Clear
- AddI X
- JumpI X
- LoadI X
- StoreI X
- JnS X
- HEX X
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
marieSimulator-1.1.5.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for marieSimulator-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f5afb66312e0c5e54f52c4ed8d0df59ff93af86e691a374a4a492b0549c3076 |
|
MD5 | d58f6db38613abb9f964c3c6daf3137d |
|
BLAKE2b-256 | a272cdea2befd93cfa62624358d91e232fed1207635e03d20b65221a06c50c65 |