Instruction set
ST7LITE20F2 ST7LITE25F2 ST7LITE29F2
Table 50. Inherent instructions (continued)
Instruction
Function
SLL, SRL, SRA, RLC, RRC
SWAP
Shift and Rotate operations
Swap nibbles
12.1.2
Immediate
Immediate instructions have two bytes: The first byte contains the opcode and the second
byte contains the operand value.
T.able 51. Immediate instructions
Instruction
Function
LD
CP
BCP
AND, OR, XOR
ADC, ADD, SUB, SBC
Load
Compare
Bit Compare
Logical operations
Arithmetic operations
12.1.3
12.1.4
Direct
In Direct instructions, the operands are referenced by their memory address. The direct
addressing mode consists of two submodes:
● Direct (short)
The address is a byte, thus requiring only one byte after the opcode, but only allows
00 - FF addressing space.
● Direct (long)
The address is a word, thus allowing 64 Kbyte addressing space, but requires 2 bytes
after the opcode.
Indexed (no offset, short, long)
In this mode, the operand is referenced by its memory address, which is defined by the
unsigned addition of an index register (X or Y) with an offset.
The indexed addressing mode consists of three submodes:
● Indexed (no offset)
There is no offset, (no extra byte after the opcode), and it allows 00 - FF addressing
space.
● Indexed (short)
The offset is a byte, thus requiring only one byte after the opcode and allows
00 - 1FE addressing space.
● Indexed (long)
The offset is a word, thus allowing 64 Kbyte addressing space and requires 2 bytes
after the opcode.
112/166
Doc ID 8349 Rev 5