Texas Instruments MSP50C6xx Calculator User Manual


 
Implementation Details
5-33Code Development Tools
C to C function return (in ronco_return).
||||||
||||||
|––––––––––––––||––––––––––––––||––––––––––––––|
R5||||||
|––––––––––––––||––––––––––––––||––––––––––––––|
||||||
|––––––––––––––||––––––––––––––||––––––––––––––|
R7 |(old)R5 | |(old)R5 | |(old)R5 |
|––––––––––––––||––––––––––––––||––––––––––––––|
|(old)R5 | |(old)R5 | |(old)R5 |
|––––––––––––––||––––––––––––––||––––––––––––––|
|Return Addr |R7 |Return Addr | |Return Addr |
|––––––––––––––||––––––––––––––||––––––––––––––|
|Return Addr | |Return Addr | |Return Addr |
|––––––––––––––||––––––––––––––||––––––––––––––|
|Param 2 | |Param 2 |R7 |Param 2 |
|––––––––––––––||––––––––––––––||––––––––––––––|
|Param 2 | |Param 2 | |Param 2 |
|––––––––––––––||––––––––––––––||––––––––––––––|
|Param 1 | |Param 1 | |Param 1 |
|––––––––––––––||––––––––––––––||––––––––––––––|
|Param 1 | |Param 1 | |Param 1 |
|––––––––––––––||––––––––––––––||––––––––––––––|
|Stack data |R5 |Stack data |R5 |Stack data |
|––––––––––––––||––––––––––––––||––––––––––––––|
SUBB R7,2 MOV A0~,*R7–– RET
MOV *0,A0~
MOV R5,*0