Download ST7 8-bit MCU family user guide

Transcript
4 - Architecture of the ST7 core
■
The last mode, called inherent, means that the data involved in the instruction does not need
to be designated by an address, such as the instruction that increments the accumulator.
The many indexed and indirect modes available are useful for translating programs written in
C language, since these programs frequently use complex data structures.
4.3.3 Instruction set
The instruction set of the ST7 includes many instructions. They can be sorted in different
ways. Here is a grouping by number of addressing modes available. This kind of sorting may
seem arbitrary, but there are actually groups of instructions that have a common function and
also the same set of addressing modes.
Table 2. Table of the number of addressing modes versus the instruction types.
Type of instruction
No
operand
(system)
Multiplication and
branch
(relative)
2
1
(inherent)
Push and
pop
Load
memory
with
index
4
9
Load and
compare
index
Single
operand
arithmetic
and test
Load
memory
with
accumulat
or and
jump long
Twooperand
arithmetic
10
11
14
15
CLR
HALT
CPL
IRET
DEC
NOP
MUL
INC
RCF
BRES
NEG
RET
BSET
RIM
BTJF
RSP
BTJT
SCF
CALLR
SIM
JR*
POP
PUSH
LD mem,
X
CP X,
LD mem,
Y
CP Y,
LD X,
LD Y,
RLC
RRC
SLA
SLL
SRA
TRAP
SRL
WFI
SWAP
ADC
ADD
AND
CALL
BCP
JP
CP A,
LD mem,
A
LD A,
OR
SBC
SUB
XOR
TNZ
73/315