Home  Site Map  Instruction Index 

NOT  -  Reverse Bits Instruction


The NOT instruction is used to reverse the bits of the operand. Bits set to 1 become 0, and 0 become 1.

This command has 2 parts, Instruction, then either a Register, or a memory address.



Assembly
Sample
Description   16 bit Machine
  Code
MOV AX, 0x0106;  Set a value in a Register   B8 06 01
NOT AX;  Perform NOT on a Register   F7 C0
; Print AX;  value = 65273  
MOV [BX], 0x0106;  Set a value in the memory address   C7 07 06 01
NOT [BX];  Perform NOT a memory address   F7 17
; Print [BX];  value = 65273