Instruction set
ST7LUS5, ST7LU05, ST7LU09
Table 57. Instructions supporting direct, indexed, indirect and indirect indexed
addressing modes (continued)
Type
Instruction
Function
CLR
Clear
INC, DEC
TNZ
Increment/decrement
Test negative or zero
CPL, NEG
1 or 2 complement
Short instructions only
BSET, BRES
Bit operations
BTJT, BTJF
Bit test and jump operations
lete Prodduucctt((ss)) -- OObbssoolleettee PPrroodduucctt((ss)) 11.1.7
SLL, SRL, SRA, RLC,
RRC
SWAP
CALL, JP
Shift and rotate operations
Swap nibbles
Call or jump subroutine
Relative mode (direct, indirect)
This addressing mode is used to modify the PC register value by adding an 8-bit signed
offset to it.
Table 58. Available relative direct/indirect instructions
Instruction
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 memory, of which the address follows the opcode.
OObbssoolete Pro 11.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 the following Table 60.
Table 59. Instruction groups
Group
Instructions
Load and transfer
LD CLR
Stack operation
Increment/decrement
PUSH POP
INC DEC
RSP
88/124