Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->NEG
NEG Negate (Twos Complement) Accumulator or Memory
NEGA
NEGB
NEG
A <- 00 - A or B <- 00 - B or M <- 00 _ M
Condition Code Register:
H Undefined
N Set if result Negative, else cleared
Z Set if result Zero, else cleared
V Set if original operand was &80
C Set if borrow, else cleared
Addressing mode | No of cycles | No of bytes |
Implied: | 2 | 1 |
Direct: | 6 | 2 |
Extended: | 7 | 3 |
Index/Indirect: | 6+ | 2+ |