beautypg.com

Texas Instruments MSP50C6xx User Manual

Page 329

background image

Implementation Details

5-33

Code 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