NEG

Negate accumulator.
Function: A <- 0 - A
 
Format:
1110 1101
 
byte 1: ED
 
0100 0100
 
byte 2: 44
 
Description: The contents of the accumulator are subtracted from zero (two's complement) and the result is stored back in the accumulator.
 
Data Flow:
 
Timing: 2 M cycles; 8 T states: 4 usec @ 2 MHz
 
Addressing Mode: implicit
 
Flags:
C will set if A was 0 before the instruction. P will set if A was 80H.
 
Example:
NEG

OBJECT CODE
Before:
 
After: