33 / 44 page

CS5954AM
ADVANCE
INFORMATION
Document #: 38-08025 Rev. **
Page 33 of 44
R15—
[R15]:= PC
PC = [destination]
[R15]:= PC
R15—
PC = [int vector * 2]
This instruction allows the programmer to implement software interrupts. Int vector is multiplied by two, and zero extended to 16
bits.[33]
The condition (cccc) bits for all of the above instructions are defined as follows.
8.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.[35, 36]
Notice that the opcode field is expanded to seven bits wide. The four MSBs for all instructions of this class are “1101.”
Notes:
33. Interrupt vectors 0 through 31 may be reserved for hardware interrupts, depending on the application.
34. 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.”
35. 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.
36. The CS5954AM QT assembler takes this into account.
Ccc CALL cccc
bit:
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1010
cccc
1
0
Destination
INT
bit:
15
14
13
12
11
10
9
8
7
6
5
43210
1010
0000
0
int vector
Condition
cccc Bits
Description
JUMP Mnemonic[34]
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
O0110
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
54
3210
1101***
[param]
destination