Please enable JavaScript.
Coggle requires JavaScript to display documents.
CS 330 Chapter 2 (2.7 (Procedure calls (Place parameters in register,…
CS 330 Chapter 2
2.7
slt: rd, rs, rt
if rs<rt, rd = 1. else rd = 0
-
Procedure calls
- Place parameters in register
- Transfer control to procedure.
- Perform procedures operations
- Place result in register for caller
-
- Acquire storage for procedure.
-
instructions:
jal:
1.Jump(longer distance).
- Save data in ra.
jr $ra:
- Not limited by distance.
-