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 *
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.2.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for marieSimulator-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 343aaa7805c4713d9ce7d7746c2e2587a1d1811d4bc45bb9de335da5cdf10f89 |
|
MD5 | 4f8e26fe4f570ab0a59889f6c4597444 |
|
BLAKE2b-256 | 2be2c70b2ac0e311d12f7cc519922afec86f69f4f057b722f2fb72403e46bf27 |