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]

Syntax

Processng Size

Operand

Code Size

(Byte)

src

dest

(1)NOT dest

L

Rd

2

(2)NOT src, dest

L

Rs

Rd

3

 

[Flag Change]

Flag

C

Z

S

O

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