Implementation Details
5-58
C to ASM function call. The stack is shown after the operation on the bottom
is performed.
||||||
|––––––––––––––| |––––––––––––––| |––––––––––––––|
||| |||
|––––––––––––––| |––––––––––––––| |––––––––––––––|
||| |||
|––––––––––––––| |––––––––––––––| |––––––––––––––|
||||||
|––––––––––––––| |––––––––––––––| |––––––––––––––|
||||||
|––––––––––––––| |––––––––––––––| |––––––––––––––|
||||||
|––––––––––––––| |––––––––––––––| |––––––––––––––|
||||||
|––––––––––––––| |––––––––––––––| |––––––––––––––|
| | | |R7 |Param 2 |
|––––––––––––––| |––––––––––––––| |––––––––––––––|
| | | | |Param 2 |
|––––––––––––––| |––––––––––––––| |––––––––––––––|
| |R7 |Param 1 | |Param 1 |
|––––––––––––––| |––––––––––––––| |––––––––––––––|
| | |Param 1 | |Param 1 |
|––––––––––––––| |––––––––––––––| |––––––––––––––|
R7,R5 |Stack data |R5 |Stack data |R5 |Stack data |
|––––––––––––––| |––––––––––––––| |––––––––––––––|
Before call Parameter 1 Parameter 2