X86-assembly/Instructions/pop

From aldeid
Jump to navigation Jump to search
You are here:
pop

Description

  • The pop instruction is used to restore the top of the stack into a register

Syntax

pop register

Example

push 0xdebf    ; push a value to the stack
pop eax        ; eax is now 0xdebf
; swap content of registers
push eax
mov eax, ebx
pop ebx

Comments