Datasheet

Instruction set ST7LITE20F2 ST7LITE25F2 ST7LITE29F2
112/170 DocID8349 Rev 7
12.1.2 Immediate
Immediate instructions have two bytes: The first byte contains the opcode and the second
byte contains the operand value.
.
12.1.3 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.
12.1.4 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.
PUSH/POP Push/Pop to/from the stack
INC/DEC Increment/Decrement
TNZ Test Negative or Zero
CPL, NEG 1 or 2 Complement
MUL Byte Multiplication
SLL, SRL, SRA, RLC, RRC Shift and Rotate operations
SWAP Swap nibbles
Table 50. Inherent instructions (continued)
Instruction Function
Table 51. Immediate instructions
Instruction Function
LD Load
CP Compare
BCP Bit Compare
AND, OR, XOR Logical operations
ADC, ADD, SUB, SBC Arithmetic operations