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
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.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for marieSimulator-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7863cc25a671786c876f0df08ec2974ef454e1c121dd78f6303db2d8a8fda7d1 |
|
MD5 | a4cc54b1283bdc7828497e5d057c43b0 |
|
BLAKE2b-256 | 9200bc5b4a6429ebf1fdb7ebf4d4bc1e4a5462ee84acd761b7f3a1dc2e9c2349 |