not
Logical complement
Inverts every bit of the operand at the given size.
Sizes .b .w .l, .w by default
Used in
- Arithmetic, logic and bitsM68K assembly
- Arithmetic, logic and bitsAssembly basics
XNZVC –●●00
- ● depends on the result
- 0 always 0
- – not changed
Forms
Operands
<ea>- An operand using one of the addressing modes listed for this form. The list determines whether it can be a register, memory or an immediate value. With
opt p=68020, an allowedd(An,Xn)ord(PC,Xn)mode also permits the corresponding 68020 indexed and memory indirect forms. See 68020 addressing. More
* --- Bitwise complement ---
move.l #%00001111, d0
not.b d0 ; d0 low byte = %11110000
* --- Size affects which bits are flipped ---
move.l #$0000FFFF, d1
not.w d1 ; low word flipped: d1 = $00000000
move.l #$0000FFFF, d2
not.l d2 ; all bits flipped: d2 = $FFFF0000