58
ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
M8C Instruction Set
4.21
Move
MOV
Allows for a number of combinations of moves: immediate, direct, and indexed addressing are sup-
ported.
Instructions
Operation
Opcode
Cycles Bytes
Mnemonic
Argument
MOV
X, SP
0x4F
4
1
MOV
A, expr
0x50
4
2
MOV
A, [expr]
0x51
5
2
MOV
A, [X+expr]
0x52
6
2
MOV
[expr], A
0x53
5
2
MOV
[X+expr], A
0x54
6
2
MOV
[expr], expr
0x55
8
3
MOV
[X+expr], expr
0x56
9
3
MOV
X, expr
0x57
4
2
MOV
X, [expr]
0x58
6
2
MOV
X, [X+expr]
0x59
7
2
MOV
[expr], X
0x5A
5
2
MOV
A, X
0x5B
4
1
MOV
X, A
0x5C
4
1
MOV
A, reg[expr]
0x5D
6
2
MOV
A, reg[X+expr]
0x5E
7
2
MOV
[expr], [expr]
0x5F
10
3
MOV
REG[expr], A
0x60
5
2
MOV
REG[X+expr], A
0x61
6
2
MOV
REG[expr], expr
0x62
8
3
MOV
REG[X+expr],
expr
0x63
9
3
Conditional
Flags:
CF
ZF
Unaffected.
Set if
A
is the destination and the result is zero.
Example:
mov
A, 0x01
;accumulator will equal 1, ZF=0
mov
A, 0x00
;accumulator will equal 0, ZF=1
X
SP
A
k
A
ram k
A
ram X k
+
ram k
A
ram X k
+
A
ram k
1
k
2
ram X k
1
+
k
2
X
k
X
ram k
X
ram X k
+
ram k
X
A
X
X
A
A
reg k
A
reg X k
+
ram k
1
ram k
2
reg k
A
reg X k
+
A
reg k
1
k
2
reg X k
1
+
k
2
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 ...