Module 5 - Instruction Flashcards

1
Q
Given the following instruction, which register is written to as it is executed?
lbu $s7, 3160($a1)
  None of these. 
  Program Counter 
  $s7 
  $a1
A

$s7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
The bne instruction uses which addressing modes? (Select all that apply)
  Offset
  Implicit
  Direct
  Immediate
  Indirect
A

Offset
Implicit
Direct
Immediate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
Given the following instruction, which register(s) is read from as it is executed? (Select all that apply)
divu $k1, $fp
  $k1 
  $fp 
  None of these. 
  $zero
A

$k1

$fp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
Given the following instruction, which register(s) is read from as it is executed? (Select all that apply)
ori $t0, $t1, 29348
  Program Counter 
  None of these. 
  $t1 
  $t0
A

$t1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
Given the following instruction, which register(s) is read from as it is executed? (Select all that apply)
mult $ra, $s0
  $ra 
  $s0 
  None of these. 
  $zero
A

$ra

$s0

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

In the field below, enter the 32-bit hexadecimal representation of the following instruction:
lhu $a1, 2820($t8)

A

97050B04

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

In the field below, enter the 32-bit hexadecimal representation of the following instruction:
addu $t7, $sp, $s2

A

03B27821
0x 03B27821
0x03B27821

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

In the field below, enter the 32-bit hexadecimal representation of the following instruction:
subu $a2, $s4, $v0

A

0x02823023
02823023
0x 02823023

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

In the field below, enter the 32-bit hexadecimal representation of the following instruction:
sltu $t3, $fp, $a1

A

0x03C5582B
03C5582B
0x 03C5582B

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

In the field below, enter the 32-bit hexadecimal representation of the following instruction:
divu $t4, $v0

A

0x 0182001B
0x0182001B
0182001B

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