63 / 85 page

SL11R
Document #: 38-08006 Rev. **
Page 63 of 85
Note: For the JUMP mnemonics, adding an “L” to the end indicates a long or absolute jump. Adding an “S” to the end indicates
a short or relative jump. If nothing is added, the assembler will choose “S” or “L.”
7.19
Single Operand Operation Instructions
Since Single operand instructions do not require a source field, the format of the Single operand Operation instructions is slightly
different.
Notice that the opcode field is expanded to seven bits wide. The four most significant bits for all instructions of this class are
“1101.”
In addition, there is space for an optional three bit immediate value, which is used in a manner appropriate to the instruction. The
destination field functions exactly as it does in the dual operand operation instructions.
Note:
• For the SHR, SHL, ROR, ROL, ADDI and SUBI instructions, the three-bit count or n operand is incremented by 1 before it is used.
• The SL11R QT assembler takes this into account.
destination:= destination >> count
Flags Affected: Z, C, S
Note:
• The SHR instruction shifts in sign bits.
• The C flag is set with last bit shifted out of LSB.
Condition
cccc Bits
Description
JUMP mnemonic
CALL mnemonic
RET mnemonic
Z
0000
Z=1
JZ
CZ
RZ
NZ
0001
Z=0
JNZ
CNZ
RNZ
C / B
0010
C=1
JC
CC
RC
NC / AE
0011
C=0
JNC
RNC
RNC
S
0100
S=1
JS
CS
RS
NS
0101
S=0
JNS
CNS
RNS
O
0110
O=1
JO
CO
RO
NO
0111
O=0
JNO
CNO
RNO
A / NBE
1000
(Z=0 AND C=0)
JA
CA
RA
BE / NA
1001
(Z=1 OR C=1)
JBE
CBE
RBE
G / NLE
1010
(O= S AND Z=0)
JG
CG
RG
GE / NL
1011
(O=S)
JGE
CGE
RGE
L / NGE
1100
(O
≠S)
JL
CL
RL
LE / NG
1101
(O
≠S OR Z=1)
JLE
CLE
RLE
(not used)
1110
Unconditional
1111
Unconditional
JMP
CALL
RET
Instruction
bit:
15
14
13
12
11
10 9
8
7
6
543210
1101***
[param]
destination
SHR
bit:
15
14
13
12
11
10
9876543210
1101000
count-1
destination