Programming MIPS Architecture
Programming MIPS Architecture
architecture
Xiaohang Wang
Tools
• PCSPIM
– http://pages.cs.wisc.edu/~larus/spim.html
• MIPSIT
– http://www.ee.unlv.edu/~meiyang/cpe404/cpe
404 htm
404.htm
Quick start of the PCSIM
• Remove the option of “load
load exception file”
file
Quick start of the PCSIM
• Load asm file
• Set breakpoint
Quick start of the PCSIM
• Run F5 and press “OK”
OK
• Single step F10
• Multiple
M lti l step
t F11
Quick start of the MIPSIT
• Build:
– O
Open MipsIt.exe,
Mi It we need
d to
t compile
il th
the asm fil
file fifirstt
– Create a new project
– Add the asm file
Quick start of the MIPSIT
• Set up
pppaths
– You will find the lib/ bin/ include/ under your mipsit directory.
– bin/: compiler dir and executable dir
– Include/: include dir
– lib/: lib dir
Quick start of the MIPSIT
• Build
• Open Mips.exe
– We are going to simulate
Quick start of the MIPSIT
• Load the compiled file under your project
directory
Quick start of the MIPSIT
• Step or run the program