![Renesas H8/300 Series Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/renesas/h8-300-series/h8-300-series_programming-manual_1440053014.webp)
In particular, the stack pointer (R7) is not initialized. To prevent program crashes the stack
pointer should be initialized by software, by the first instruction executed after a reset.
1.3 Instructions
Features:
•
The H8/300 has a concise set of 57 RISC-like instructions.
•
Arithmetic and logic are performed as register-to-register operations, or with immediate
data.
•
All instructions are 2 or 4 bytes long.
•
Fast multiply/divide instructions; extensive bit manipulation instructions.
•
Eight addressing modes.
1.3.1 Types of Instructions
Table 1-2 classifies the H8/300 instructions by type. Tables 1-3 to 1-10 briefly describe their
functions. Section 2, Instruction Set, gives detailed descriptions.
Table 1-2. Instruction Classification
* POP Rn is equivalent to MOV.W @SP+, Rn.
PUSH Rn is equivalent to MOV.W Rn, @-SP.
** Bcc is a conditional branch instruction in which cc represents a condition .
Function
Instructions
Types
Data transfer
MOV, MOVFPE, MOVTPE, POP
*,
PUSH
*
3
Arithmetic operations
ADD, SUB, ADDX, SUBX, INC, DEC, ADDS, SUBS,
14
DAA, DAS, MULXU, DIVXU, CMP, NEG
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
14
BIOR, BXOR, BIXOR, BLD, BILD, BST, BIST
Branch
Bcc
**
, JMP, BSR, JSR, RTS
5
System control
RTE, SLEEP, LDC, STC, ANDC, ORC, XORC, NOP
8
Block data transfer
EEPMOV
1
Total 57
8
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...