SLAU132V October 2004 – February 2020
PUSH.W r10
SUB.W #2,SP
MOV.W SP,r12
CALL #_ZN6bananaC1Ev
MOV.W SP,r12
CALL #_ZN6banana8caloriesEv
MOV.W r12,r10
MOV.W SP,r12
CALL #_ZN6bananaD1Ev
MOV.W r10,r12
ADD.W #2,SP
POP r10
RET
Executing the C++ name demangler demangles all names that it believes to be mangled. Enter:
dem430 calories_in_a_banana.asm
The result is shown in Example 3. The linknames in Example 2_ZN6bananaC1Ev, _ZN6banana8caloriesEv, and _ZN6bananaD1Ev are demangled.