Implementation Details

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

 

 

 

Code Development Tools

5-33

Page 329
Image 329
Texas Instruments MSP50C6xx manual To C function return in roncoreturn