ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
45
M8C Instruction Set
4.8
Complement Accumulator
CPL
Computes the bitwise complement of the Accumulator and stores the result in the Accumulator. The
Carry Flag is not affected but the Zero Flag will be set, if the result of the complement is ‘0’ (for
example, the original value was 0xFF).
Instructions
Operation
Opcode
Cycles Bytes
Mnemonic
Argument
CPL
A
0x73
4
1
Conditional
Flags:
CF
ZF
Unaffected.
Set if the result is zero; cleared otherwise.
Example 1:
mov
A, 0xFF
cpl
A
;A=0x00, ZF=1
Example 2:
mov
A, 0xA5
cpl
A
;A=0x5A, ZF=0
Example 3:
mov
A, 0xFE
cpl
A
;A=0x01, ZF=0
A
A
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 ...