English
Language : 

MDT2005JG Datasheet, PDF (7/15 Pages) Micon Design Technology Corporation – 8-bit micro-controller
MDT2005(JG)
Instruction Code
010111 trrrrrrr
011001 trrrrrrr
011010 trrrrrrr
011011 trrrrrrr
011100 trrrrrrr
011101 trrrrrrr
011110 trrrrrrr
010010 trrrrrrr
110100 iiiiiiii
010011 trrrrrrr
110101 iiiiiiii
010100 trrrrrrr
110110 iiiiiiii
011111 trrrrrrr
010110 trrrrrrr
010101 trrrrrrr
010000 1xxxxxxx
010001 0rrrrrrr
0000bb brrrrrrr
0010bb brrrrrrr
0001bb brrrrrrr
0011bb brrrrrrr
1000nn nnnnnnnn
1010nn nnnnnnnn
110000 nnnnnnnn
110001 iiiiiiii
11001n nnnnnnnn
Mnemonic
Operands
SWAPR R, t
INCR R, t
INCRSZ R, t
ADDWR R, t
SUBWR R, t
DECR R, t
DECRSZ R, t
ANDWR R, t
ANDWI i
IORWR R, t
IORWI i
XORWR R, t
XORWI i
COMR R, t
RRR R, t
RLR R, t
CLRW
CLRR R
BCR R, b
BSR R, b
BTSC R, b
BTSS R, b
LCALL n
LJUMP n
CALL n
RTWI i
JUMP n
Function
Operating
Status
Swap halves register
Increment register
[R(0~3) ↔
R(4~7)]÷t
R + 1÷t
None
Z
Increment register, skip if zero R + 1÷t
None
Add W and register
W + R÷t
C, HC, Z
Subtract W from register
Decrement register
R àW÷t
(R+/W+1÷t)
R à1÷t
C, HC, Z
Z
Decrement register, skip if zero R à1÷t
None
AND W and register
R å W÷t
Z
AND W and immediate
i å W÷W
Z
Inclu. OR W and register
R æ W÷t
Z
Inclu. OR W and immediate i æ W÷W
Z
Exclu. OR W and register
R ⊕ W÷t
Z
Exclu. OR W and immediate i ⊕ W÷W
Z
Complement register
/R÷t
Z
Rotate right register
R(n) ÷R(n-1), C
C
÷R(7), R(0)÷C
Rotate left register
Clear working register
R(n)÷r(n+1),C÷ C
R(0), R(7)÷C
0÷W
Z
Clear register
0÷R
Z
Bit clear
0÷R(b)
None
Bit set
1÷R(b)
None
Bit Test, skip if clear
Skip if R(b)=0
None
Bit Test, skip if set
Skip if R(b)=1
None
Long CALL subroutine
Long JUMP to address
n÷PC,
PC+1÷Stack
n÷PC
None
None
Call subroutine
Return, place immediate to W
n÷PC,
PC+1÷Stack
Stack÷PC, i÷W
None
None
JUMP to address
n÷PC
None
Note :
W
:
WT
:
TMODE :
CPIO :
Working register
Watchdog timer
TMODE mode register
Control I/O port register
b : Bit position
t : Target
0 : Working register
1 : General register
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 6
2006/4 VER1.1