|
MDT2020FF Datasheet, PDF (7/16 Pages) Micon Design Technology Corporation – 8-bit micro-controller | |||
|
◁ |
8. Instruction Set
MDT2020(FF)
Instruction Code
Mnemonic
Operands
Function
Operating
Status
010000 00000000 NOP
No operation
None
010000 00000001 CLRWT
Clear Watchdog timer
0âWT
TF, PF
010000 00000010 SLEEP
Sleep mode
0âWT,stop OSC TF, PF
010000 00000011 TMODE
Load W to TMODE register WâTMODE
None
010000 00000100 RET
Return
StackâPC
None
010000 00000rrr CPIO R
Control I/O port register
WâCPIO r
None
010001 1rrrrrrr STWR R Store W to register
WâR
None
011000 trrrrrrr
LDR Rï¼ t Load register
Rât
Z
111010 iiiiiiii
LDWI I
Load immediate to W
IâW
None
010111 trrrrrrr
SWAPR Rï¼t Swap halves register
[R(0~3) â
R(4~7)]ât
None
011001 trrrrrrr
INCR Rï¼t Increment register
R + 1ât
Z
011010 trrrrrrr
011011 trrrrrrr
INCRSZ Rï¼ Increment registerï¼skip if
zero
ADDWR Rï¼t Add W and register
R + 1ât
W + Rât
None
Cï¼HCï¼Z
011100 trrrrrrr
SUBWR Rï¼t Subtract W from register R ï¹£Wât
Cï¼HCï¼Z
(R+/W+1ât)
011101 trrrrrrr
DECR Rï¼t Decrement register
R ï¹£1ât
Z
011110 trrrrrrr
DECRSZ Rï¼t Decrement registerï¼
R ï¹£1ât
None
skip if zero
010010 trrrrrrr
ANDWR Rï¼t AND W and register
R â© Wât
Z
110100 iiiiiiii
ANDWI I
AND W and immediate
I â© WâW
Z
010011 trrrrrrr
IORWR Rï¼t Inclu. OR W and register R ⪠Wât
Z
110101 iiiiiiii
IORWI I
Inclu. OR W and immediate I ⪠WâW
Z
010100 trrrrrrr
XORWR Rï¼t Exclu. OR W and register R â Wât
Z
110110 iiiiiiii
XORWI I
Exclu. OR W and immediate I â WâW
Z
011111 trrrrrrr
COMR Rï¼ t Complement register
/Rât
Z
010110 trrrrrrr
RRR Rï¼t
Rotate right register
R(n)âR(n-1)ï¼
C
CâR(7) R(0)âC
010101 trrrrrrr
RLR Rï¼ t Rotate left register
R(n)â(n+1)ï¼
C
CâR(0) R(7)âC
010000 1xxxxxxx CLRW
Clear working register
0âW
Z
010001 0rrrrrrr CLRR R Clear register
0âR
Z
0000bb brrrrrrr BCR Rï¼ b Bit clear
0âR(b)
None
0010bb brrrrrrr BSR Rï¼ b Bit set
1âR(b)
None
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 6
2007/8 VER 1.5
|
▷ |