Skip to content

fennecfox38/MIPS_ASM

Repository files navigation

MIPS_ASM

Simple examples written in MIPS Assembly

Download Mars4_5.jar from here

Install Java SE Runtime Environment and set up Environment Variable

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

Using MARS from a command line.

java -jar mars.jar [options] program.asm [more files...] [ pa arg1 [more args...]]

Read Document for detail

Executing MARS GUI

execute java -jar Mars4_5.jar in the directory where Mars4_5.jar at

Read Document for detail

Multi-file project assembly

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

About

Simple examples written in MIPS Assembly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published