Instruction set
ST7LUS5, ST7LU05, ST7LU09
11.1.2
Immediate
Immediate instructions have 2 bytes: The first byte contains the opcode. The second byte
contains the operand value.
Table 56. Immediate instructions
Instruction
Function
LD
Load
CP
Compare
BCP
Bit compare
ct(s) 11.1.3
OObbssoolleettee PPrroodduucctt((ss)) -- OObbssoolleettee PPrroodduuct(s) 11.1.4
AND, OR, XOR
ADC, ADD, SUB, SBC
Logical operations
Arithmetic operations
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 requires only 1 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.
Direct 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 direct indexed addressing mode consists of three submodes:
Direct indexed (no offset)
There is no offset (no extra byte after the opcode), and allows 00 - FF addressing space.
Direct indexed (short)
The offset is a byte, thus requires only 1 byte after the opcode and allows 00 - 1FE
addressing space.
Direct indexed (long)
The offset is a word, thus allowing 64 Kbyte addressing space and requires 2 bytes after the
opcode.
86/124