FRAME POP

Use the FRAME POP directive to inform the assembler when the callee reloads registers. You can only use it within functions with FUNCTION and ENDFUNC or PROC and ENDP directives.

You do not have to do this after the last instruction in a function.

Show/hideSyntax

There are three alternative syntaxes for FRAME POP:

FRAME POP {reglist}
FRAME POP {reglist},n
FRAME POP n

where:

reglist

is a list of registers restored to the values they had on entry to the function. There must be at least one register in the list.

n

is the number of bytes that the stack pointer moves.

Show/hideUsage

FRAME POP is equivalent to a FRAME ADDRESS and a FRAME RESTORE directive. You can use it when a single instruction loads registers and alters the stack pointer.

You must use FRAME POP immediately after the instruction it refers to.

If n is not specified or is zero, the assembler calculates the new offset for the canonical frame address from {reglist}. It assumes that:

  • each ARM register popped occupies four bytes on the stack

  • each VFP single-precision register popped occupies four bytes on the stack, plus an extra four-byte word for each list

  • each VFP double-precision register popped occupies eight bytes on the stack, plus an extra four-byte word for each list.

Show/hideSee also

Copyright © 2011-2012 ARM. All rights reserved.ARM DUI 0588B
Non-ConfidentialID062912