.TEXT 0 .GLOBAL StrCpy StrCpy: PEA TestMsg1 PEA TestMsg2 JSR StrCpyFunction ADD.L #8,SP JSR PrintMsg RTS StrCpyFunction: MOVEM.L D1-D2,-(SP) | Push to stack LINK A6,#-8 | Frame pointer /************* STACK DETAILS ************************************/ SP + 20 = Address of first string SP + 16 = Address of second string SP + 12 = JSR [Address] SP + 8 = Movem D1 SP + 4 = Movem D2 SP + 0 = Longword for A6 SP - 4 = First String address SP - 8 = Second String address *****************************************************************/