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
Содержание PSoC DESIGNER ImageCraft M8C
Страница 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Страница 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Страница 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Страница 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Страница 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Страница 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Страница 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...