Panasonic MN1030 Laptop User Manual


 
Chapter 9 Writing Machine Language Instructions and Directive Statements
178 Writing Directive Statements
Usage Example
The following gives an example of funcinfo usage.
NOTE: The ret and retf instructions free the stack frame and restore registers from the
stack.
The assembler bases this code on the information provided by the funcinfo
directive. For this reason, the ret and retf instructions cannot precede the
funcinfo directive.
global _0func
_TEXT section CODE, PUBLIC, 1
:
call _0func
:
global _0func, _func
_TEXT section CODE, PUBLIC, 1
_func
movm [D2], (SP)
add -4, SP
_0func funcinfo _func, 8, [D2]
:
:
ret