Implementation Details

C to ASM function call. The stack is shown after the operation on the bottom is performed.

 

––––––––––––––

––––––––––––––

––––––––––––––

 

––––––––––––––

––––––––––––––

––––––––––––––

 

––––––––––––––

––––––––––––––

––––––––––––––

 

––––––––––––––

––––––––––––––

––––––––––––––

 

––––––––––––––

––––––––––––––

––––––––––––––

 

––––––––––––––

––––––––––––––

––––––––––––––

 

––––––––––––––

––––––––––––––

––––––––––––––

R7

Param 2

––––––––––––––

––––––––––––––

––––––––––––––

Param 2

––––––––––––––

––––––––––––––

––––––––––––––

R7

Param 1

Param 1

––––––––––––––

––––––––––––––

––––––––––––––

Param 1

Param 1

––––––––––––––

––––––––––––––

––––––––––––––

R7,R5 Stack data

R5

Stack data

R5

Stack data

––––––––––––––

––––––––––––––

––––––––––––––

Before call

 

Parameter 1

 

 

Parameter 2

 

Code Development Tools

5-35

Page 331
Image 331
Texas Instruments MSP50C6xx manual Param R7,R5 Stack data Before call Parameter