English
Language : 

HD404889_03 Datasheet, PDF (165/197 Pages) Renesas Technology Corp – Low-Voltage AS Microcomputers with On-Chip LCD Circuit
HD404889/HD404899/HD404878/HD404868 Series
Instruction Set
The MCU Series has 101 instructions, classified into the following 10 groups:
• Immediate instructions
• Register-to-register instructions
• RAM addressing instructions
• RAM register instructions
• Arithmetic instructions
• Compare instructions
• RAM bit manipulation instructions
• ROM addressing instructions
• Input/output instructions
• Control instructions
The functions of these instructions are listed in tables 31 to 40, and an opcode map is shown in table 41.
Table 31 Immediate Instructions
Operation
Mnemonic
Load A from immediate LAI i
Load B from immediate LBI i
Load memory from
immediate
LMID i,d
Load memory from
LMIIY i
immediate, increment Y
Operation Code
1 0 0 0 1 1 i3 i2 i1 i0
1 0 0 0 0 0 i3 i2 i1 i0
0 1 1 0 1 0 i3 i2 i1 i0
d9 d8 d7 d6 d5 d4 d3 d2 d1 d0
1 0 1 0 0 1 i3 i2 i1 i0
Function
i→A
i→B
i→M
Words/
Status Cycles
1/1
1/1
2/2
i → M, Y + 1 → Y NZ
1/1
Table 32 Register-Register Instructions
Operation
Mnemonic Operation Code
Function
Words/
Status Cycles
Load A from B
LAB
0001001000
B→A
1/1
Load B from A
LBA
0011001000
A→B
1/1
Load A from W
LAW
0100000000
W→A
2/2*
0000000000
Load A from Y
LAY
0010101111
Y→A
1/1
Load A from SPX
LASPX
0001101000
SPX → A
1/1
Load A from SPY
LASPY
0001011000
SPY → A
1/1
Load A from MR
LAMR m
1 0 0 1 1 1 m3 m2 m1 m0
MR (m) → A
1/1
Exchange MR and A XMRA m
1 0 1 1 1 1 m3 m2 m1 m0
MR (m) ↔ A
1/1
Note: The assembler automatically provides an operand for the second word of the LAW instruction.
Rev.6.00, Sep.08.2003, page 165 of 197