ECE2071 Notes - Assembly Language
ECE2071 Notes - Assembly Language
Solution:
1. Caller pushes $ra and any argument registers ($a0-3) or temporary
registers ($t0-9) that are needed after the call onto the stack
2. Callee pushes any saved registers ($s0-7) used by callee
3. Stack pointer $sp is adjusted to account for the number of registers
placed onto the stack
4. Upon return, the registers are restored off the stack and the stack
pointer readjusted to its original state
Across a function call:
Recursive Functions
Communicating with People
Computers use 8-bit bytes to represent chracters
Common standard is ASCII
Special instructions to move bytes