16 bit Assembly
Home Site Map Instruction Index
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 |
; PrintAX | ; = 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] | ; = 65273 |