Unformatted text preview: whose address is in register Rs (PC = Rs) JALR (Jump-and-Link Register)Save return address in Rd = PC+4, andJump to procedure whose address is in register Rs (PC = Rs) Can be used to call methods (addresses known only at runtime Parameter passing in assembly language is different More complicated than that used in a high-level language In assembly languagePlace all required parameters in an accessible storage area Then call the procedure Two types of storage areas usedRegisters: general-purpose registers are used (register method) Memory: stack is used (stack method) Two common mechanisms of parameter passing Pass-by-value: parameter value is passedPass-by-reference: address of parameter is passed...
View Full Document
- Fall '08
- Assembly Language, return address, $31, procedure swap, etc. Issue