Implementation Details

 

 

 

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

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

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

 

R7

 

R5,R7

 

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

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

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

 

 

 

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

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

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

 

R5

(old)R5

<– This is the SP

 

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

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

–––––––––––––– before the

 

R5

(old)R5

C function call.

 

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

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

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

R7

Return Addr

Return Addr

Return Addr

 

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

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

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

 

Return Addr

Return Addr

Return Addr

 

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

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

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

 

Param 2

Param 2

Param 2

 

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

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

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

 

Param 2

Param 2

Param 2

 

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

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

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

 

Param 1

Param 1

Param 1

 

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

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

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

 

Param 1

Param 1

Param 1

 

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

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

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

R5

Stack data

R5

Stack data

Stack data

 

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

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

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

 

Function call

 

 

ADDB R7,2

 

MOV *0,R7

 

 

 

 

 

MOV *R7++,R5

 

MOV R5,*0

 

5-32

Page 328
Image 328
Texas Instruments MSP50C6xx manual Addb R7,2