Computer Organization and Architecture | <
Home About Notes Follow Dash

welcome!


Welcome to pecelleleosk.blogspot.my! We provide information and notes about Computer Organization and Architecture for you to access just by your fingertips! Easy and no stress! Enjoy your study :D

recent entries


Credits

© Designed by x Base code by y z


MIPS simulator
Monday, 5 December 2016 • 08:34 • 0 comments



To run MIPS, we have to use SPIM-which is MIPS spelled backwards, if you don't notice ;) SPIM is a MIPS simulator that:-
  • reads MIPS assembly language files and translates to machine language
  • executes the machine language instructions
  • hows contents of registers and memory
  • works as a debugger (supports break-points and single-stepping)
  • provides basic OS-like services, like simple I/O

SPIM is available online for FREE and if you would like to download it, here is the link ! Below is the simplest example on how to use MIPS simulator, a.k.a QtSPIM (click on the images for a better view)  :

STEP 1: Load the .asm file into QtSpim. Look at the changes in text display.




STEP 2: press F10 to execute the next instruction.


STEP 3:  Press F10 to see the changes.


STEP 4:  The result is 5 in register $10.



Have fun exploring MIPS and SPIM :)


0 Comments:

Post a Comment


|