MARIE Simulator Tutorial
Recall that in Chapter 4 of our textbook (Null and Lobur), we discussed the MARIE processor, including its assembly language instructions. There is an online simulator for MARIE that will allow you to develop and run MARIE assembly language programs. The link is https://marie.js.org/
Code Examples
Download the following files on your PC:
Running the Code in the MARIE Simulator
- In your browser, go to the MARIE simulator site: https://marie.js.org/
- In the top menu bar, select File, Upload and update the tutorial file MARIE_ch4p33.txt
- The MARIE simulator will display the assembly code:
- On the bottom tool bar, click the Assemble button to assemble the code. If there are no errors, you should see the message "Assembled Successfully" below the code window
- On the bottom tool bar, click the Run button to run the code
- On the right hand side of the simulator, there will be a window that displays the results of running the code. Note that the default OUTPUT MODE is HEX (hexadecimal)
- You may change the number base for the OUTPUT MODE using the pull-down menu (e.g., DEC for decimal)
- To save a PDF copy of the assembly code window and output mode window, right click on the website
- Select Print, Save as PDF
T. Manikas
Last update 2024 Aug 18