Exam #3 Review Part 4 Flashcards
Other
1
Q
addressing modes, instruction types
A
Addressing Modes
1. Register Addressing
Ex: add $t1, $t2, $t3
- Immediate Addressing
Ex: addi $t1, $t1, 1 - Base Addressing
Ex: sw $zero, ($t0) - PC-Relative
Ex: beq $t1, $t2, loop - Pseudo Direct
Ex: j loop
Instruction Types
2
Q
addressing modes, instruction types
A
Addressing Modes
1. Register Addressing
Ex: add $t1, $t2, $t3
- Immediate Addressing
Ex: addi $t1, $t1, 1 - Base Addressing
Ex: sw $zero, ($t0) - PC-Relative
Ex: beq $t1, $t2, loop - Pseudo Direct
Ex: j loop
Instruction Types
1. R-type
Ex: add $t1, $t3, $t2
- I-Type
Ex: sw $zero, ($t0) - J-Type
Ex: j loop