MDT10F630
Mnemonic
Operands
Function
Instruction Code
Operation
Status
STWR
R
Store W to register
Load register
W→R
None
010001 1rrrrrrr
011000 trrrrrrr
111010 iiiiiiii
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
LDR R, t
R→t
Z
LDWI
I
Load immediate to W
Swap halves register
Increment register
I→W
None
SWAPR R, t
INCR R, t
INCRSZ R, t
ADDWR R, t
SUBWR R, t
DECR R, t
[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
Subtract W from register
Decrement register
W + R→t
C, HC, Z
R ﹣W→t (R+/W+1→t)
R ﹣1→t
C, HC, Z
Z
R ﹣1→t
DECRSZ R, t Decrement register, skip if zero
None
ANDWR R, t
ANDWI
IORWR R, t
IORWI
XORWR R, t
XORWI
AND W and register
R ∩ W→t
I ∩ W→W
R ∪ W→t
I ∪ W→W
R ♁ W→t
I ♁ W→W
/R→t
Z
Z
Z
Z
Z
Z
I
AND W and immediate
Inclu. OR W and register
Inclu. OR W and immediate
Exclu. OR W and register
Exclu. OR W and immediate
I
I
COMR R, t
RRR R, t
Complement register
Rotate right register
Z
011111 trrrrrrr
010110 trrrrrrr
R(n) →R(n-1),
C
C→R(7), R(0)→C
010101 trrrrrrr
RLR R, t
Rotate left register
R(n)→r(n+1),
C
C→R(0), R(7)→C
CLRW
Clear working register
Clear register
0→W
Z
010000 1xxxxxxx
010001 0rrrrrrr
0000bb brrrrrrr
0010bb brrrrrrr
0001bb brrrrrrr
0011bb brrrrrrr
100nnn nnnnnnnn
101nnn nnnnnnnn
110001 iiiiiiii
110111 iiiiiiii
111000 iiiiiiii
010000 00001001
010000 00000100
CLRR
R
0→R
Z
BCR R, b
BSR R, b
BTSC R, b
BTSS R, b
Bit clear
0→R(b)
None
None
None
None
None
None
None
C,HC,Z
C,HC,Z
None
None
Bit set
1→R(b)
Bit Test, skip if clear
Bit Test, skip if set
Long CALL subroutine
Long JUMP to address
Return, place immediate to W
Add immediate to W
Subtract W from immediate
Return from interrupt
Return from subroutine
Skip if R(b)=0
Skip if R(b)=1
N→PC, PC+1→Stack
N→PC
LCALL
LJUMP
RTIW I
ADDWI I
SUBWI I
RTFI
N
N
Stack→PC, I→W
PC+1→PC, W+I→W
I-W→W
Stack→PC,1→GIS
Stack→PC
RET
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw P.14 2008/4 Ver. 1.0