beautypg.com

Texas Instruments MSP50C614 User Manual

Page 356

background image

Implementation Details

5-56

C to C function return (in cmm_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