Home  Site Map  Instruction Index 

POP  -  Stack Retrieval Instruction


The POP instructions are used to load the registers with contents held in the stack.

If an attempt is made to remove more items from the stack than exist in the stack it will cause an exeption.

POPA restores the Registers in reverse order from PUSHA.

All other POP instructions load the register with the next available stack item in a last in first out order.

Stack items are stored using the PUSH instruction.

POP has 2 part, the Instruction and an operand which can be either a Register, 16 bit immediate value, or a 16 bit memory address.

POPA has 1 part, the Instruction. It retrieves all the previously saved Registers stored in the stack using PUSHA.

POPF has 1 part, the Instruction. It retrieves a previously saved Flags Register from the stack.


Instruction   16 bit Machine
Code
POPF9D
POPA61
POP AX58
POP CX59
POP DX5A
POP BX5B
POP SP5C
POP BP5D
POP SI5E
POP DI5F
POP ES07
POP SS17
POP DS1F
POP FS0F A1
POP GS0F A9
POP [BX]8F 37
POP [BX+2]8F 77 02