
30Mar98@15:00h
Semiconductor Group
104
Version 1.2, 12.97
C166 Family Instruction Set
Instruction Description
SCXT
Switch Context
SCXT
Syntax
SCXT
op1, op2
Operation
(tmp1)
←
(op1)
(tmp2)
←
(op2)
(SP)
←
(SP) - 2
((SP))
←
(tmp1)
(op1)
←
(tmp2)
Data Types
WORD
Description
Used to switch contexts for any register. Switching context is a push and
load operation. The contents of the register specified by the first operand,
op1, are pushed onto the stack. That register is then loaded with the value
specified by the second operand, op2.
E Not affected.
Z Not affected.
V Not affected.
C Not affected.
N Not affected.
Addressing Modes
Mnemonic
Format
Bytes
SCXT
reg, #data16
C6 RR ## ##
4
SCXT
reg, mem
D6 RR MM MM
4
Condition Flags
E
Z
V
C
N
-
-
-
-
-