pea

Push effective address

Computes the effective address of the operand and pushes it onto the stack.

Size .l

XNZVC –––––
  • Changes no flag

Forms

Operands

<ea>
An operand using one of the addressing modes listed for this form. The list determines whether it can be a register, memory or an immediate value. With opt p=68020, an allowed d(An,Xn) or d(PC,Xn) mode also permits the corresponding 68020 indexed and memory indirect forms. See 68020 addressing. More

Like lea, it does not read data at the final address, but a 68020 memory indirect operand reads a pointer while computing it.

* --- Pushes address onto stack, SP decremented by 4 ---
move.l sp, d0 ; save sp before
pea $2000
move.l sp, d1 ; sp decreased by 4
move.l (sp), d2 ; d2 = $00002000