Panasonic MN101L Series User Manual page 552

Lsi
Table of Contents

Advertisement

Chapter 20
Appendix
MN101L SERIES INSTRUCTION SET
Group
Mnemonic
JSR
JSRV (tbl4)
RTS
RTS
RTI
RTI
NOP Instruction
NOP
NOP
Control Instructions
REP
REP imm3
BE
BE
BD
BD
Other than the instruction of MN101L Series, the assembler of this Series has the following
instructions as macro instructions.
The assembler will interpret the macro instructions below as the assembler instructions.
..
..
XX - 10
Instruction set
Flag
Operation
VF NF CF ZF
SP-3 → SP , (PC+3).bp7~0 → mem8(SP),
-
-
-
-
(PC+3).bp15~8 → mem8(SP+1),
(PC+3).H → mem8(SP+2).bp7,
0 → mem8(SP+2).bp6~4,
(PC+3).bp19~16 → mem8(SP+2).bp3~0,
mem8(x'04080'+tbl4<<2) → PC.bp7~0,
mem8(x'04080'+tbl4<<2+1) →
PC.bp15~8,
mem8(x'04080'+tbl4<<2+2).bp7 → PC.H,
mem8(x'04080'+tbl4<<2+2).bp3~0 →
PC.bp19~16
mem8(SP) → (PC).bp7~0,
-
-
-
-
mem8(SP+1) → (PC).bp15~8,
mem8(SP+2).bp7 → (PC).H,
mem8(SP+2).bp3~0 → (PC).bp19~16,
SP+3 → SP
mem8(SP) → PSW,
mem8(SP+1) → (PC).bp7~0,
mem8(SP+2) → (PC).bp15~8,
mem8(SP+3).bp7 → (PC).H,
mem8(SP+3).bp3~0 → (PC).bp19~16,
mem8(SP+4) → HA-l,
mem8(SP+5) → HA-h,
SP+6 → SP
PC+2 → PC
-
-
-
-
imm3-1 → RPC
-
-
-
-
PSW & x'3F' → PSW
-
-
-
-
PSW | x'C0' → PSW
-
-
-
-
macro instructions
INC
Dn
DEC
Dn
INC
An
DEC
An
INC2
An
DEC2
An
CLR
Dn
ASL
Dn
LSL
Dn
ROL
Dn
NEG
Dn
NOPL
MOV
(SP), Dm
MOV
Dn, (SP)
MOVW
(SP), DWm
MOVW
DWn, (SP)
MOVW
(SP), Am
MOVW
An, (SP)
Code
Execution
REP
Size
Cycle
Ext.
1
2
3
max(6+d+3i,
1111
1110
6+2d+2i)
2
max(4+2d+i,
0000
0001
6+2d)
2
max(5+3d+i,
0000
0011
6+3d)
2
1
0000
0000
3
1
0010
0001
1rep
3
2
0010
0010
0000
3
2
0010
0011
0000
*1 When the value of SP is odd number, the execution cycle is added "(1+d)".
*2 imm3 = 1 : repeat count = 0 (rep : imm3 - 1)
replaced instructions
remarks
ADD
1, Dm
ADD
-1, Dm
ADDW
1, Am
ADDW
-1, Am
ADDW
2, Am
ADDW
-2, Am
SUB
Dn, Dm
n = m
ADD
Dn, Dm
n = m
ADD
Dn, Dm
n = m
ADDC
Dn, Dm
n = m
NOT
Dn
ADD
1, Dm
MOVW
DWn, DWm
n = m
MOV
(0, SP), Dm
MOV
Dn, (0, SP)
MOVW
(0, SP), DWm
MOVW
DWn, (0, SP)
MOVW
(0, SP), Am
MOVW
An, (0, SP)
Machine Code
3
4
5
6
7
8
9
<t4>
Notes
10
11
*1
*2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents