Instruction set
ST7LITE20F2 ST7LITE25F2 ST7LITE29F2
Table 53. Short instructions supporting direct, indexed, indirect and indirect
indexed addressing modes (continued)
Short instructions only
Function
BTJT, BTJF
SLL, SRL, SRA, RLC, RRC
SWAP
CALL, JP
Bit Test and Jump operations
Shift and Rotate operations
Swap nibbles
Call or Jump sub-routine
12.1.7
Relative mode (direct, indirect)
This addressing mode is used to modify the PC register value, by adding an 8-bit signed
offset to it.
T.able 54. Relative direct and indirect instructions and functions
Available relative direct/indirect instructions
Function
JRxx
CALLR
Conditional Jump
Call Relative
The relative addressing mode consists of two submodes:
● Relative (direct)
The offset follows the opcode.
● Relative (indirect)
The offset is defined in the memory, the address of which follows the opcode.
12.2
Instruction groups
The ST7 family devices use an Instruction Set consisting of 63 instructions. The instructions
may be subdivided into 13 main groups as illustrated in Table 55:
Table 55. Instruction groups
Group
Instructions
Load and Transfer
Stack operation
Increment/Decrement
Compare and Tests
Logical operations
Bit operation
Conditional Bit Test and Branch
Arithmetic operations
Shift and Rotates
Unconditional Jump or Call
LD
CLR
−
PUSH POP RSP
INC DEC
−
CP TNZ BCP
AND OR XOR
BSET BRES −
BTJT BTJF
−
ADC ADD SUB
SLL SRL SRA
JRA JRT JRF
−
−
−
−
CPL
−
−
SBC
RLC
JP
−
−
−
−
−
−
−
−
NEG
−
−
−
−
−
MUL
−
RRC SWAP
CALL CALLR
−−
−−
−−
−−
−
−
−−
−−
−−
SLA −
NOP RET
114/166
Doc ID 8349 Rev 5