Download 80296SA Microcontroller User`s Manual

Transcript
80296SA USER’S MANUAL
Table A-6. Instruction Set (Continued)
Mnemonic
SCALL
Operation
Instruction Format
SHORT CALL. Pushes the contents of the
program counter (the return address) onto
the stack, then adds to the program counter
the offset between the end of this instruction
and the target label, effecting the call. The
offset must be in the range of –1024 to
+1023.
64-Kbyte mode:
SP ← SP – 2
(SP) ← PC
PC←PC +11-bit disp
SCALL
NOTE:
1-Mbyte mode:
SP ← SP – 4
(SP) ← PC
PC←PC +11-bit disp
PSW Flag Settings
SETC
Z
N
C
V
VT
ST
—
—
—
—
—
—
cadd
(00101xxx) (disp-low)
The displacement (disp) is signextended to 16-bits in the 64Kbyte addressing mode and to 24
bits in the 1-Mbyte addressing
mode. This displacement may
cause the program counter to
cross a page boundary in 1-Mbyte
mode.
SET CARRY FLAG. Sets the carry flag.
C←1
SETC
(11111001)
PSW Flag Settings
SHL
Z
N
C
V
VT
ST
—
—
1
—
—
—
SHIFT WORD LEFT. Shifts the destination
word operand to the left as many times as
specified by the count operand. The count
may be specified either as an immediate
value in the range of 0 to 15 (0FH), inclusive,
or as the content of any register (10–0FFH)
with a value in the range of 0 to 31 (1FH),
inclusive. The right bits of the result are filled
with zeros. The last bit shifted out is saved in
the carry flag.
temp ← (COUNT)
do while temp ≠ 0
C ← High order bit of (DEST)
(DEST) ← (DEST) × 2
temp ← temp – 1
end_while
PSW Flag Settings
A-44
Z
N
C
V
VT
ST
✓
✓
✓
✓
↑
—
SHL
wreg, #count
(00001001) (count) (wreg)
or
SHL
wreg, breg
(00001001) (breg) (wreg)