NOT
|
Logical complementation
|
NOT
|
NOT
|
[Syntax]
(1)NOT dest
(2)NOT src, dest
[Operation]
(1)dest = ~dest;
(2)dest = ~src;
[Function]
- | (1)This instruction logically inverts dest and places the result in dest. |
- | (2)This instruction logically inverts src and places the result in dest. |
[Instruction Format]
|
|
|
|
|
(1)NOT dest
|
|
|
Rd
|
|
(2)NOT src, dest
|
|
Rs
|
Rd
|
|
[Flag Change]
Conditions
Z : The flag is set if dest is 0 after the operation; otherwise it is cleared.
S : The flag is set if the MSB of dest after the operation is 1 ; otherwise it is cleared.
[Description Example]
NOT R1
NOT R1, R2