SLAU132V October 2004 – February 2020
.sect "codeA"
.align 2
.global funcA
;*****************************************************************************
;* FUNCTION NAME: funcA *
;* *
;* Regs Modified : SP,SR,r12 *
;* Regs Used : SP,SR,r12 *
;* Local Frame Size : 0 Args + 4 Auto + 0 Save = 4 byte *
;*****************************************************************************
funcA:
;* --------------------------------------------------------------------------*
SUB.W #4,SP
MOV.W r12,0(SP) ; |4|
MOV.W 0(SP),2(SP) ; |6|
MOV.W 2(SP),r12 ; |6|
ADD.W #4,SP
RET