Keil Logo

Ax51 Introduction CPL

Complement

Description  

The CPL instruction logically complements the value of the specified destination operand and stores the result back in the destination operand. Bits that previously contained a 1 will be changed to a 0 and bits that previously contained a 0 will be changed to a 1.

CPL A
C AC F0 RS1 RS0 OV P
Bytes   1
Cycles   1
Encoding   11110100
Operation  
CPL
A = NOT A
Example  
CPL A
CPL bit_address
C AC F0 RS1 RS0 OV P
Bytes   2
Cycles   1
Encoding   10110010, bit_address
Operation  
CPL
(bit_address) = NOT (bit_address)
Example  
CPL 55h
CPL C
C AC F0 RS1 RS0 OV P
Bytes   1
Cycles   1
Encoding   10110011
Operation  
CPL
C = NOT C
Example  
CPL C
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.