1.6 Instruction Set
1.6.1 Overview
The H8/300H CPU has 62 types of instructions, which are classified by function in table 1-1. For
a detailed description of each instruction see section 2.2, Instruction Descriptions.
Table 1-1 Instruction Classification
Function
Instructions
Number
Data transfer
MOV, PUSH
*
1
, POP
*
2
, MOVTPE, MOVFPE
3
Logic operations
AND, OR, XOR, NOT
4
Shift
SHAL, SHAR, SHLL, SHLR, ROTL, ROTR, ROTXL,
8
ROTXR
Bit manipulation
BSET, BCLR, BNOT, BTST, BAND, BIAND, BOR, BIOR,
14
BXOR, BIXOR, BLD, BILD, BST, BIST
Branch
Bcc
*
2
, JMP, BSR, JSR, RTS
5
Block data transfer
EEPMOV
1
Total 62 types
Notes: The shaded instructions are not present in the H8/300 instruction set.
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. Bcc is the generic designation of a conditional branch instruction.
System control
TRAPA, RTE, SLEEP, LDC, STC, ANDC, ORC, XORC, NOP
9
Arithmetic
ADD, SUB, ADDX, SUBX, INC, DEC, ADDS, SUBS, DAA,
18
operations
DAS, MULXU, MULXS, DIVXU, DIVXS, CMP, NEG, EXTS,
EXTU
15