2.6
Instruction Set
The H8S/2000 CPU has 65 types of instructions. The instructions are classified by function as
shown in table 2.1.
Table 2.1
Instruction Classification
Function
Instructions
Data transfer
MOV
POP *
LDM, STM *
MOVFPE *
Arithmetic
ADD, SUB, CMP, NEG
operations
ADDX, SUBX, DAA, DAS
INC, DEC
ADDS, SUBS
MULXU, DIVXU, MULXS, DIVXS
EXTU, EXTS
TAS
Logic operations
AND, OR, XOR, NOT
Shift
SHAL, SHAR, SHLL, SHLR, ROTL, ROTR, ROTXL,
ROTXR
Bit manipulation
BSET, BCLR, BNOT, BTST, BLD, BILD, BST, BIST, BAND,
BIAND, BOR, BIOR, BXOR, BIXOR
Branch
B
System control
TRAPA, RTE, SLEEP, LDC, STC, ANDC, ORC, XORC,
NOP
Block data transfer EEPMOV
Legend: B: Byte size
W: Word size
L:
Longword size
Notes: 1. POP.W Rn and PUSH.W Rn are identical to MOV.W @SP+, Rn and MOV.W Rn,
@-SP. POP.L ERn and PUSH.L ERn are identical to MOV.L @SP+, ERn and
MOV.L ERn, @-SP.
2. Since register ER7 functions as the stack pointer in an STM/LDM instruction, it cannot
be used as an STM/LDM register.
3. Cannot be used in this LSI.
4. B
is the general name for conditional branch instructions.
CC
1
, PUSH *
1
2
3
, MOVTPE *
*
4
, JMP, BSR, JSR, RTS
CC
3
Rev. 3.00 Jan 25, 2006 page 33 of 872
Section 2 CPU
Size
Types
B/W/L
5
W/L
L
B
B/W/L
19
B
B/W/L
L
B/W
W/L
B
B/W/L
4
B/W/L
8
B
14
—
5
—
9
—
1
Total: 65
REJ09B0286-0300