Skip to main content

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)

  1. Load X
  2. Store X
  3. Add X
  4. Subt X
  5. Input
  6. Output
  7. Halt
  8. Skipcond X
  9. Jump X
  10. Clear
  11. AddI X
  12. JumpI X
  13. LoadI X
  14. StoreI X
  15. JnS X
  16. HEX X

Download the GUI application here Or copy: https://www.aaryandehade.live/Marie%20Simulator.dmg

Project details


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.8.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

marieSimulator-1.1.8-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page