NEG - Two's Complement Negation
Usage: NEG dest
Modifies Flags: AF CF OF PF SF ZF
Subtracts the destination from 0 and saves the 2s complement of "dest" back into "dest".
Clocks | ||||
---|---|---|---|---|
operands | 286 | 386 | 486 | Size Bytes |
reg | 2 | 2 | 1 | 2 |
mem | 7 | 6 | 3 | 2-4 |
Usage: NOP
Modifies Flags: None
This is a do nothing instruction. It results in occupation of both space and time and is most useful for patching code segments. (This is the original XCHG AL,AL instruction)
Clocks | ||||
---|---|---|---|---|
operands | 286 | 386 | 486 | Size Bytes |
none | 3 | 3 | 1 | 1 |
NOT - One's Complement Negation (Logical NOT)
Usage: NOT dest
Modifies Flags: None
Inverts the bits of the "dest" operand forming the 1s complement.
Clocks | ||||
---|---|---|---|---|
operands | 286 | 386 | 486 | Size Bytes |
reg | 2 | 2 | 1 | 2 |
mem | 7 | 6 | 3 | 2-4 |
[ TOC | Previous | NeXt | Winston's page ]