(MCU 8051) STC15W104
Opcode
參考資訊:
1. opcodes
表格如下:
Hex | Bytes | Mnemonic | Operands |
---|---|---|---|
00 | 1 | nop | |
01 | 2 | ajmp | addr11 |
02 | 3 | ljmp | addr16 |
03 | 1 | rr | a |
04 | 1 | inc | a |
05 | 2 | inc | direct |
06 | 1 | inc | @r0 |
07 | 1 | inc | @r1 |
08 | 1 | inc | r0 |
09 | 1 | inc | r1 |
0a | 1 | inc | r2 |
0b | 1 | inc | r3 |
0c | 1 | inc | r4 |
0d | 1 | inc | r5 |
0e | 1 | inc | r6 |
0f | 1 | inc | r7 |
10 | 3 | jbc | bit, offset |
11 | 2 | acall | addr11 |
12 | 3 | lcall | addr16 |
13 | 1 | rrc | a |
14 | 1 | dec | a |
15 | 2 | dec | direct |
16 | 1 | dec | @r0 |
17 | 1 | dec | @r1 |
18 | 1 | dec | r0 |
19 | 1 | dec | r1 |
1a | 1 | dec | r2 |
1b | 1 | dec | r3 |
1c | 1 | dec | r4 |
1d | 1 | dec | r5 |
1e | 1 | dec | r6 |
1f | 1 | dec | r7 |
20 | 3 | jb | bit, offset |
21 | 2 | ajmp | addr11 |
22 | 1 | ret | |
23 | 1 | rl | a |
24 | 2 | add | a, #immed |
25 | 2 | add | a, direct |
26 | 1 | add | a, @r0 |
27 | 1 | add | a, @r1 |
28 | 1 | add | a, r0 |
29 | 1 | add | a, r1 |
2a | 1 | add | a, r2 |
2b | 1 | add | a, r3 |
2c | 1 | add | a, r4 |
2d | 1 | add | a, r5 |
2e | 1 | add | a, r6 |
2f | 1 | add | a, r7 |
30 | 3 | jnb | bit, offset |
31 | 2 | acall | addr11 |
32 | 1 | reti | |
33 | 1 | rlc | a |
34 | 2 | addc | a, #immed |
35 | 2 | addc | a, direct |
36 | 1 | addc | a, @r0 |
37 | 1 | addc | a, @r1 |
38 | 1 | addc | a, r0 |
39 | 1 | addc | a, r1 |
3a | 1 | addc | a, r2 |
3b | 1 | addc | a, r3 |
3c | 1 | addc | a, r4 |
3d | 1 | addc | a, r5 |
3e | 1 | addc | a, r6 |
3f | 1 | addc | a, r7 |
40 | 2 | jc | offset |
41 | 2 | ajmp | addr11 |
42 | 2 | orl | direct, a |
43 | 3 | orl | direct, #immed |
44 | 2 | orl | a, #immed |
45 | 2 | orl | a, direct |
46 | 1 | orl | a, @r0 |
47 | 1 | orl | a, @r1 |
48 | 1 | orl | a, r0 |
49 | 1 | orl | a, r1 |
4a | 1 | orl | a, r2 |
4b | 1 | orl | a, r3 |
4c | 1 | orl | a, r4 |
4d | 1 | orl | a, r5 |
4e | 1 | orl | a, r6 |
4f | 1 | orl | a, r7 |
50 | 2 | jnc | offset |
51 | 2 | acall | addr11 |
52 | 2 | anl | direct, a |
53 | 3 | anl | direct, #immed |
54 | 2 | anl | a, #immed |
55 | 2 | anl | a, direct |
56 | 1 | anl | a, @r0 |
57 | 1 | anl | a, @r1 |
58 | 1 | anl | a, r0 |
59 | 1 | anl | a, r1 |
5a | 1 | anl | a, r2 |
5b | 1 | anl | a, r3 |
5c | 1 | anl | a, r4 |
5d | 1 | anl | a, r5 |
5e | 1 | anl | a, r6 |
5f | 1 | anl | a, r7 |
60 | 2 | jz | offset |
61 | 2 | ajmp | addr11 |
62 | 2 | xrl | direct, a |
63 | 3 | xrl | direct, #immed |
64 | 2 | xrl | a, #immed |
65 | 2 | xrl | a, direct |
66 | 1 | xrl | a, @r0 |
67 | 1 | xrl | a, @r1 |
68 | 1 | xrl | a, r0 |
69 | 1 | xrl | a, r1 |
6a | 1 | xrl | a, r2 |
6b | 1 | xrl | a, r3 |
6c | 1 | xrl | a, r4 |
6d | 1 | xrl | a, r5 |
6e | 1 | xrl | a, r6 |
6f | 1 | xrl | a, r7 |
70 | 2 | jnz | offset |
71 | 2 | acall | addr11 |
72 | 2 | orl | c, bit |
73 | 1 | jmp | @a+dptr |
74 | 2 | mov | a, #immed |
75 | 3 | mov | direct, #immed |
76 | 2 | mov | @r0, #immed |
77 | 2 | mov | @r1, #immed |
78 | 2 | mov | r0, #immed |
79 | 2 | mov | r1, #immed |
7a | 2 | mov | r2, #immed |
7b | 2 | mov | r3, #immed |
7c | 2 | mov | r4, #immed |
7d | 2 | mov | r5, #immed |
7e | 2 | mov | r6, #immed |
7f | 2 | mov | r7, #immed |
80 | 2 | sjmp | offset |
81 | 2 | ajmp | addr11 |
82 | 2 | anl | c, bit |
83 | 1 | movc | a, @a+pc |
84 | 1 | div | ab |
85 | 3 | mov | direct, direct |
86 | 2 | mov | direct, @r0 |
87 | 2 | mov | direct, @r1 |
88 | 2 | mov | direct, r0 |
89 | 2 | mov | direct, r1 |
8a | 2 | mov | direct, r2 |
8b | 2 | mov | direct, r3 |
8c | 2 | mov | direct, r4 |
8d | 2 | mov | direct, r5 |
8e | 2 | mov | direct, r6 |
8f | 2 | mov | direct, r7 |
90 | 3 | mov | dptr, #immed |
91 | 2 | acall | addr11 |
92 | 2 | mov | bit, c |
93 | 1 | movc | a, @a+dptr |
94 | 2 | subb | a, #immed |
95 | 2 | subb | a, direct |
96 | 1 | subb | a, @r0 |
97 | 1 | subb | a, @r1 |
98 | 1 | subb | a, r0 |
99 | 1 | subb | a, r1 |
9a | 1 | subb | a, r2 |
9b | 1 | subb | a, r3 |
9c | 1 | subb | a, r4 |
9d | 1 | subb | a, r5 |
9e | 1 | subb | a, r6 |
9f | 1 | subb | a, r7 |
a0 | 2 | orl | c, /bit |
a1 | 2 | ajmp | addr11 |
a2 | 2 | mov | c, bit |
a3 | 1 | inc | dptr |
a4 | 1 | mul | ab |
a5 | reserved | ||
a6 | 2 | mov | @r0, direct |
a7 | 2 | mov | @r1, direct |
a8 | 2 | mov | r0, direct |
a9 | 2 | mov | r1, direct |
aa | 2 | mov | r2, direct |
ab | 2 | mov | r3, direct |
ac | 2 | mov | r4, direct |
ad | 2 | mov | r5, direct |
ae | 2 | mov | r6, direct |
af | 2 | mov | r7, direct |
b0 | 2 | anl | c, /bit |
b1 | 2 | acall | addr11 |
b2 | 2 | cpl | bit |
b3 | 1 | cpl | c |
b4 | 3 | cjne | a, #immed, offset |
b5 | 3 | cjne | a, direct, offset |
b6 | 3 | cjne | @r0, #immed, offset |
b7 | 3 | cjne | @r1, #immed, offset |
b8 | 3 | cjne | r0, #immed, offset |
b9 | 3 | cjne | r1, #immed, offset |
ba | 3 | cjne | r2, #immed, offset |
bb | 3 | cjne | r3, #immed, offset |
bc | 3 | cjne | r4, #immed, offset |
bd | 3 | cjne | r5, #immed, offset |
be | 3 | cjne | r6, #immed, offset |
bf | 3 | cjne | r7, #immed, offset |
c0 | 2 | push | direct |
c1 | 2 | ajmp | addr11 |
c2 | 2 | clr | bit |
c3 | 1 | clr | c |
c4 | 1 | swap | a |
c5 | 2 | xch | a, direct |
c6 | 1 | xch | a, @r0 |
c7 | 1 | xch | a, @r1 |
c8 | 1 | xch | a, r0 |
c9 | 1 | xch | a, r1 |
ca | 1 | xch | a, r2 |
cb | 1 | xch | a, r3 |
cc | 1 | xch | a, r4 |
cd | 1 | xch | a, r5 |
ce | 1 | xch | a, r6 |
cf | 1 | xch | a, r7 |
d0 | 2 | pop | direct |
d1 | 2 | acall | addr11 |
d2 | 2 | setb | bit |
d3 | 1 | setb | c |
d4 | 1 | da | a |
d5 | 3 | djnz | direct, offset |
d6 | 1 | xchd | a, @r0 |
d7 | 1 | xchd | a, @r1 |
d8 | 2 | djnz | r0, offset |
d9 | 2 | djnz | r1, offset |
da | 2 | djnz | r2, offset |
db | 2 | djnz | r3, offset |
dc | 2 | djnz | r4, offset |
dd | 2 | djnz | r5, offset |
de | 2 | djnz | r6, offset |
df | 2 | djnz | r7, offset |
e0 | 1 | movx | a, @dptr |
e1 | 2 | ajmp | addr11 |
e2 | 1 | movx | a, @r0 |
e3 | 1 | movx | a, @r1 |
e4 | 1 | clr | a |
e5 | 2 | mov | a, direct |
e6 | 1 | mov | a, @r0 |
e7 | 1 | mov | a, @r1 |
e8 | 1 | mov | a, r0 |
e9 | 1 | mov | a, r1 |
ea | 1 | mov | a, r2 |
eb | 1 | mov | a, r3 |
ec | 1 | mov | a, r4 |
ed | 1 | mov | a, r5 |
ee | 1 | mov | a, r6 |
ef | 1 | mov | a, r7 |
f0 | 1 | movx | @dptr, a |
f1 | 2 | acall | addr11 |
f2 | 1 | movx | @r0, a |
f3 | 1 | movx | @r1, a |
f4 | 1 | cpl | a |
f5 | 2 | mov | direct, a |
f6 | 1 | mov | @r0, a |
f7 | 1 | mov | @r1, a |
f8 | 1 | mov | r0, a |
f9 | 1 | mov | r1, a |
fa | 1 | mov | r2, a |
fb | 1 | mov | r3, a |
fc | 1 | mov | r4, a |
fd | 1 | mov | r5, a |
fe | 1 | mov | r6, a |
ff | 1 | mov | r7, a |