Datasheet
DocID8349 Rev 7 111/170
ST7LITE20F2 ST7LITE25F2 ST7LITE29F2 Instruction set
169
12.1.1 Inherent
All Inherent instructions consist of a single byte. The opcode fully specifies all the required
information for the CPU to process the operation.
Long Direct Indexed ld A,($1000,X) 0000..FFFF −−+ 2
Short Indirect − ld A,[$10] 00..FF 00..FF byte + 2
Long Indirect − ld A,[$10.w] 0000..FFFF 00..FF word + 2
Short Indirect Indexed ld A,([$10],X) 00..1FE 00..FF byte + 2
Long Indirect Indexed
ld
A,([$10.w],X)
0000..FFFF 00..FF word + 2
Relative Direct − jrne loop
PC-128/
PC+127
(1)
−−+ 1
Relative Indirect − jrne [$10]
PC-128/
PC+127
(1)
00..FF byte + 2
Bit Direct − bset $10,#7 00..FF −−+ 1
Bit Indirect − bset [$10],#7 00..FF 00..FF byte + 2
Bit Direct Relative btjt $10,#7,skip 00..FF −−+ 2
Bit Indirect Relative
btjt
[$10],#7,skip
00..FF 00..FF byte + 3
1. At the time the instruction is executed, the Program Counter (PC) points to the instruction following JRxx.
Table 49. ST7 addressing mode overview
Mode Syntax
Destination/
source
Pointer
address
(Hex.)
Pointer size
(Hex.)
Length
(bytes)
Table 50. Inherent instructions
Instruction Function
NOP No Operation
TRAP S/W Interrupt
WFI WAIT for Interrupt (low power mode)
HALT HALT oscillator (lowest power mode)
RET Sub-routine Return
IRET Interrupt sub-routine Return
SIM Set Interrupt Mask (level 3)
RIM Reset Interrupt Mask (level 0)
SCF Set Carry Flag
RCF Reset Carry Flag
RSP Reset Stack Pointer
LD Load
CLR Clear










