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