Datasheet
Instruction set ST7LITE20F2 ST7LITE25F2 ST7LITE29F2
114/170 DocID8349 Rev 7
I
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.
.
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 ST 7 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 53. Short instructions supporting direct, indexed, indirect and indirect
indexed addressing modes
Short instructions only Function
CLR Clear
INC, DEC Increment/Decrement
TNZ Test Negative or Zero
CPL, NEG 1 or 2 Complement
BSET, BRES Bit operations
BTJT, BTJF Bit Test and Jump operations
SLL, SRL, SRA, RLC, RRC Shift and Rotate operations
SWAP Swap nibbles
CALL, JP Call or Jump sub-routine
Table 54. Relative direct and indirect instructions and functions
Available relative direct/indirect instructions Function
JRxx Conditional Jump
CALLR Call Relative
Table 55. Instruction groups
Group Instructions
Load and Transfer LD CLR −−− − −−
Stack operation PUSH POP RSP −− − −−
Increment/Decrement INC DEC −−− − −−
Compare and Tests CP TNZ BCP −− − −−
Logical operations AND OR XOR CPL NEG −− −










