Module 5 - Instruction Flashcards
Given the following instruction, which register is written to as it is executed? lbu $s7, 3160($a1) None of these. Program Counter $s7 $a1
$s7
The bne instruction uses which addressing modes? (Select all that apply) Offset Implicit Direct Immediate Indirect
Offset
Implicit
Direct
Immediate
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
$k1
$fp
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
$t1
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
$ra
$s0
In the field below, enter the 32-bit hexadecimal representation of the following instruction:
lhu $a1, 2820($t8)
97050B04
In the field below, enter the 32-bit hexadecimal representation of the following instruction:
addu $t7, $sp, $s2
03B27821
0x 03B27821
0x03B27821
In the field below, enter the 32-bit hexadecimal representation of the following instruction:
subu $a2, $s4, $v0
0x02823023
02823023
0x 02823023
In the field below, enter the 32-bit hexadecimal representation of the following instruction:
sltu $t3, $fp, $a1
0x03C5582B
03C5582B
0x 03C5582B
In the field below, enter the 32-bit hexadecimal representation of the following instruction:
divu $t4, $v0
0x 0182001B
0x0182001B
0182001B