OUTCOME
To understand the working of the Simulator and to code, load and execute
assembly language programs
The early MIPS architectures were 32-bit (generally 32-bit wide registers and
data paths), while later versions were 64-bit.
One of the more interesting applications of the MIPS architecture is its use in
massive processor count supercomputers.
The first commercial MIPS CPU model, the R2000, was announced in 1985
The R3000A was the processor used in the extremely successful Sony
PlayStation
Installation
System requirements
Free Download
http://www.cs.wisc.edu/larus/pcspim.zip
http://www.cs.wisc.edu/larus/xspim.tar.gz
Version
Current version of SPIM is 7.4 (January 2009)
general-
general-purpose registers
meaning of source
instruction’s code of
bit pattern program
address of word-by
word- by-
-word
first byte of contents of memory
row (16 bytes per row)
Click "no".
Go back and correct your source code using the text editor,
Then reload the file.
.data
no: .asciiz "Enter the numbers to be added"
result: .asciiz "Result"
.text
main:
la $a0,no
li $v0,4
syscall
li $v0,5
syscall
move $s0,$v0
23 SCS VIT University 10/04/2009
li $v0,5
syscall
move $s1,$v0
add $s3,$s1,$s0
la $a0,result
li $v0,4
syscall
move $a0,$s3
li $v0,1
syscall
li $v0,10
syscall
SPIM Demo
www.cs.wisc.edu
www.google.com
www.mips.org
MIPS Programmers handbook by Erin Farquhar and Philip
Bunce
MARS: An education oriented MIPS assembly language
simulator