POP loc16
POP loc16
SYNTAX OPTIONS
POP loc16
Operands
loc16
Description
Flags and
N
Modes
Z
Repeat
Example
POP @T
POP @AL
POP @AR4
POP *XAR4++
6-274
0010 1010 LLLL LLLL
Addressing mode (See Chapter 5)
Predecrement SP by 1. Load the contents of loc16 with the 16-bit value
pointed to by SP.
SP
-= 1;
[loc16] = [SP];
If (loc16 = @AX), then the load to AX is tested for a negative condition. Bit-15
of the AX register is the sign bit, 0 for positive, 1 for negative. The negative
flag bit is set if the operation on the AX register generates a negative value,
otherwise it is cleared.
If (loc16 = @AX), then the load to AX is tested for a zero condition. The bit is
set if the result of the operation on the AX register generates a 0 value,
otherwise it is cleared
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
OPCODE
; Predecrement SP by 1. Load
; XT(31:15) with the
; contents of the location pointed to
; by SP. TL is unchanged.
; Predecrement SP by 1. Load AL with
; the contents of the location pointed
; to by SP. AH is unchanged.
; Predecrement SP by 1. Load AR4 with
; the contents of the location pointed
; to by SP. AR4H is unchanged.
; Predecrement SP by 1. Load the
; 16-bit location pointed to by XAR4
; with the contents of the location
; pointed to by SP.
Post-increment
; XAR4 by 1
Pop Top of Stack
OBJMODE
RPT
CYC
X
−
2
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?