|
HD404374 Datasheet, PDF (127/161 Pages) Renesas Technology Corp – Low-Voltage AS Microcomputers with On-Chip A/D Converter | |||
|
◁ |
HD404374/HD404384/HD404389/HD404082/HD404084 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 30 to 39, and an opcode map is shown in table 40.
Table 30 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 31 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.5.00, Sep.11.2003, page 127 of 161
|
▷ |