MIPS Instructions go in the
text segment
The first instruction executed:
follows the main label
The MIPS version of “if ($t0 == $t1) goto label” is:
BEQ $t0, $t1, label
The MIPS version of “goto label” is:
J label
To get the address associated with some label into register $a0
LA $a0, label
To load a 32-bit value into $t0 from the memory address contained in $a0
LW $t0, 0($a0)
The MIPS directive used for screen and keyboard stuff is:
SYSCALL
The data directive to store a literal string in your data segment (suitable for display with syscall) is:
.asciiz “my string”