ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
15
M8C Microprocessor
Table 2-3. Instruction Set Summary Sorted Alphabetically by Mnemonic
O
p
code Hex
Cycl
es
Bytes
Instruction Format
Flags
O
p
code Hex
Cycl
es
Bytes
Instruction Format
Flags
O
p
code Hex
Cycl
es
Bytes
Instruction Format
Flags
09 4
2 ADC A, expr
C, Z
76 7 2 INC [expr]
C, Z
20 5 1 POP X
0A 6
2 ADC A, [expr]
C, Z
77 8
2 INC [X+expr]
C, Z
18 5 1 POP A
Z
0B 7
2 ADC A, [X+expr]
C, Z
Fx 13 2 INDEX
Z
10 4 1 PUSH X
0C 7
2 ADC [expr], A
C, Z
Ex 7
2 JACC
08 4 1 PUSH A
0D 8
2 ADC [X+expr], A
C, Z
Cx 5
2 JC
7E 10 1 RETI
C, Z
0E 9
3 ADC [expr], expr
C, Z
8x 5
2 JMP
7F 8 1 RET
0F 10 3 ADC [X+expr], expr
C, Z
Dx 5
2 JNC
6A 4 1 RLC A
C, Z
01 4
2 ADD A, expr
C, Z
Bx 5
2 JNZ
6B 7 2 RLC [expr]
C, Z
02 6
2 ADD A, [expr]
C, Z
Ax 5
2 JZ
6C 8 2 RLC [X+expr]
C, Z
03 7
2 ADD A, [X+expr]
C, Z
7C 13 3 LCALL
28 11 1 ROMX
Z
04 7
2 ADD [expr], A
C, Z
7D 7
3 LJMP
6D 4 1 RRC A
C, Z
05 8
2 ADD [X+expr], A
C, Z
4F 4
1 MOV X, SP
6E 7 2 RRC [expr]
C, Z
06 9
3 ADD [expr], expr
C, Z
50 4
2 MOV A, expr
Z
6F 8 2 RRC [X+expr]
C, Z
07 10 3 ADD [X+expr], expr
C, Z
51 5
2 MOV A, [expr]
Z
19 4 2 SBB A, expr
C, Z
38 5
2 ADD SP, expr
52 6
2 MOV A, [X+expr]
Z
1A 6 2 SBB A, [expr]
C, Z
21 4 2 AND A, expr
Z
53 5
2 MOV [expr], A
1B 7 2 SBB A, [X+expr]
C, Z
22 6 2 AND A, [expr]
Z
54 6
2 MOV [X+expr], A
1C 7 2 SBB [expr], A
C, Z
23 7 2 AND A, [X+expr]
Z
55 8
3 MOV [expr], expr
1D 8 2 SBB [X+expr], A
C, Z
24 7 2 AND [expr], A
Z
56 9
3 MOV [X+expr], expr
1E 9 3 SBB [expr], expr
C, Z
25 8 2 AND [X+expr], A
Z
57 4
2 MOV X, expr
1F 10 3 SBB [X+expr], expr
C, Z
26 9 3 AND [expr], expr
Z
58 6
2 MOV X, [expr]
00 15 1 SSC
27 10 3 AND [X+expr], expr
Z
59 7
2 MOV X, [X+expr]
11 4 2 SUB A, expr
C, Z
70 4 2 AND F, expr
C, Z
5A 5
2 MOV [expr], X
12 6 2 SUB A, [expr]
C, Z
41 9 3 AND reg[expr], expr
Z
5B 4
1 MOV A, X
Z
13 7 2 SUB A, [X+expr]
C, Z
42 10 3 AND reg[X+expr], expr
Z
5C 4
1 MOV X, A
14 7 2 SUB [expr], A
C, Z
64 4 1 ASL A
C, Z
5D 6
2 MOV A, reg[expr]
Z
15 8 2 SUB [X+expr], A
C, Z
65 7 2 ASL [expr]
C, Z
5E 7
2 MOV A, reg[X+expr]
Z
16 9 3 SUB [expr], expr
C, Z
66 8 2 ASL [X+expr]
C, Z
5F 10 3 MOV [expr], [expr]
17 10 3 SUB [X+expr], expr
C, Z
67 4 1 ASR A
C, Z
60 5
2 MOV reg[expr], A
4B 5 1 SWAP A, X
Z
68 7 2 ASR [expr]
C, Z
61 6
2 MOV reg[X+expr], A
4C 7 2 SWAP A, [expr]
Z
69 8 2 ASR [X+expr]
C, Z
62 8
3 MOV reg[expr], expr
4D 7 2 SWAP X, [expr]
9x 11 2 CALL
63 9
3 MOV reg[X+expr], expr
4E 5 1 SWAP A, SP
Z
39 5 2 CMP A, expr
if (A=B)
Z=1
if (A<B)
C=1
3E 10 2 MVI A, [ [expr]++ ]
Z
47 8 3 TST [expr], expr
Z
3A 7 2 CMP A, [expr]
3F 10 2 MVI [ [expr]++ ], A
48 9 3 TST [X+expr], expr
Z
3B 8 2 CMP A, [X+expr]
40 4
1 NOP
49 9 3 TST reg[expr], expr
Z
3C 8 3 CMP [expr], expr
29 4
2 OR A, expr
Z
4A 10 3 TST reg[X+expr], expr
Z
3D 9 3 CMP [X+expr], expr
2A 6
2 OR A, [expr]
Z
72 4 2 XOR F, expr
C, Z
73 4 1 CPL A
Z
2B 7
2 OR A, [X+expr]
Z
31 4
2 XOR A, expr
Z
78 4 1 DEC A
C, Z
2C 7
2 OR [expr], A
Z
32 6
2 XOR A, [expr]
Z
79 4 1 DEC X
C, Z
2D 8
2 OR [X+expr], A
Z
33 7
2 XOR A, [X+expr]
Z
7A 7 2 DEC [expr]
C, Z
2E 9
3 OR [expr], expr
Z
34 7
2 XOR [expr], A
Z
7B 8 2 DEC [X+expr]
C, Z
2F 10 3 OR [X+expr], expr
Z
35 8
2 XOR [X+expr], A
Z
30 9
1 HALT
43 9
3 OR reg[expr], expr
Z
36 9
3 XOR [expr], expr
Z
74 4 1 INC A
C, Z
44 10 3 OR reg[X+expr], expr
Z
37 10 3 XOR [X+expr], expr
Z
75 4 1 INC X
C, Z
71 4
2 OR F, expr
C, Z
45 9 3 XOR reg[expr], expr
Z
Note 1
Interrupt acknowledge to Interrupt Vector table = 13 cycles.
46 10 3 XOR reg[X+expr], expr
Z
Note 2
The number of cycles required by an instruction is increased by one for instructions
that span 256 byte page boundaries in the Flash memory space.
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...