ok lets be more specific
what that means:
addi $s0,$zero,13?
General procedure:
- Break it down.
- Look it up.
Breaking It Down
The Wikipedia article on MIPS architecture has this brief table entry for addi:
$t = $s + C (signed)
...
Used to add sign-extended constants (and also to copy one register to another: addi $1, $2, 0), executes a trap on overflow
So using the arithmetic expression and the description, it means:
$s0 = $zero + 13 (signed)
The description would be:
Adds the value of $zero to the constant 13 and stores the result in $s0. The addition is signed, and there is a trap on overflow.
It's left to you to determine any special significance of registers such as $zero, and whether or not the addition could cause a trap on overflow.
Looking It Up
If any part of of the above doesn't make sense, then you should study your textbook and any other reference materials you have on the MIPS architecture.
If you're learning MIPS assembly language in a classroom situation, and are unable to get the information you need from studying your textbook and other references, then you should ask your instructor for guidance on where to get tutorial assistance. Most schools have some kind of teaching assistants who can provide extra coaching. Your instructor or guidance counselor is the best source for this. Or throw a party with free beer, and invite all the smart kids in the class.
If you're not learning MIPS in a classroom situation, then describe what book or tutorial you're learning it from.
Coming here for an explanation of every MIPS instruction is unlikely to be an effective strategy.
References:
http://en.wikipedia.org/wiki/MIPS_architecture