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