Posted on

Requirement

You should have homebrew installed on your mac.

Installation

After you have installed homebrew on your mac, you can run the following command to install Spim on your mac.

$ brew install spim

How to use it

Open the Terminal at the folder you created your .asm file and enter

$ spim

Now you can run your assembly program like the following

Following is my assembly program

main:
    li  $t1, 1
    add $t0, $t1, 2

    li  $v0, 10
    syscall

References

  1. https://sites.cs.ucsb.edu/~franklin/64/lectures/mipsassemblytutorial.pdf

Leave a Reply

Your email address will not be published. Required fields are marked *