MIPS Flashcards

1
Q

MIPS Instructions go in the

A

text segment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The first instruction executed:

A

follows the main label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The MIPS version of “if ($t0 == $t1) goto label” is:

A

BEQ $t0, $t1, label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The MIPS version of “goto label” is:

A

J label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To get the address associated with some label into register $a0

A

LA $a0, label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To load a 32-bit value into $t0 from the memory address contained in $a0

A

LW $t0, 0($a0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The MIPS directive used for screen and keyboard stuff is:

A

SYSCALL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The data directive to store a literal string in your data segment (suitable for display with syscall) is:

A

.asciiz “my string”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly