Simple examples written in MIPS Assembly
Development Environment: MARS(MIPS Assembly and Runtime Simulator)
Download Mars4_5.jar
from here
Java SE Runtime Environment (JRE) is required to execute Mars4_5.jar
Try to run java --version
and install JRE if it is not install.
Download JRE
or execute command sudo apt install openjdk-17-jre
For Windows, set up Java Environment Variable to use java binary globally. Refer Stack Overflow
java -jar mars.jar [options] program.asm [more files...] [ pa arg1 [more args...]]
Read Document for detail
execute java -jar Mars4_5.jar
in the directory where Mars4_5.jar
at
Read Document for detail
Put all project files in the project directory and define the main procedure globally and enable the following options in GUI (parenthesis for CLI)
- 'Settings' - 'Assemble all files in directory' (option
p
for CLI) - 'Settings' - 'Initialize Program Counter to global 'main' if defined' (option
sm
for CLI)
eg.) java -jar Mars4_5.jar p sm DGEMM/DGEMM.asm