English
Language : 

DR805X Datasheet, PDF (28/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.8. CPL
- 28 -
3.8.1. CPL A
Function: Complement accumulator
Description: Each bit of the accumulator is logically complemented (one’s
complement). Bits which previously contained a one are changed to
zero and vice versa. No flags are affected.
Operation: (PC) ← (PC) + 1
(A) ← / (A)
Bytes:
1
Cycles:
2
Encoding:
11110100
3.8.2. CPL BIT
Function: Complement bit
Description: The bit variable specified is complemented. A bit which had been a one
is changed to zero and vice versa. No other flags are affected. CPL can
operate on the carry or any directly addressable bit.
Note:
When this instruction is used to modify an output pin, the value used as
the original data will be read from the output data latch, not the input
pin.
Operation: (PC) ← (PC) + 2
(C) ← (bit)
Bytes:
2
Cycles:
4
Encoding:
10110010
bit address
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.