T.I.M | ISA Specification
|
Loads the top four bytes of the stack into the destination register.
The POP instruction can write to any register so long as the supervisor mode bit is set in the Status Register. Otherwise, it can write to any of the general purpose or temporary registers. If it tries to write to a register is should not, it is treated as a NOP.
POP also causes the Stack Pointer register to be decremented.
This is a 2 byte instruction. The GP/SR bit determines whether the destination register is addressing the general purpose register bank or the special purpose / temporary register bank.