Texas Instruments MSP50C614 User Manual
Page 355
Implementation Details
5-55
Code Development Tools
|
|
|
|
|
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|
|R7 |
|R5,R7 |
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|
|
|
|
|
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|
|
|
R5
|
|(old)R5
|<– This is the SP
|––––––––––––––|
|––––––––––––––|
|––––––––––––––| before the
|
|
|
R5
|
|(old)R5
|C function call.
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
R7
|Return Addr
|
|Return Addr
|
|Return Addr
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|Return Addr
|
|Return Addr
|
|Return Addr
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|Param 2
|
|Param 2
|
|Param 2
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|Param 2
|
|Param 2
|
|Param 2
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|Param 1
|
|Param 1
|
|Param 1
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
|Param 1
|
|Param 1
|
|Param 1
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
R5
|Stack data
|R5 |Stack data
|
|Stack data
|
|––––––––––––––|
|––––––––––––––|
|––––––––––––––|
Function call
ADDB R7,2
MOV *0,R7
MOV *R7++,R5
MOV R5,*0