This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

NEG Negate Accumulator (two's compliment)

Table of Contents

\(A \longleftarrow 0 - A\)

76543210
11101101ED
0100010044
Flags Affected
Flags
sz-h-p/vnc
sset if result is negative
zset if result is 0
hset if borrow from bit 4
p/vset if Accumulator was 0x80 before operation
nset
cset if Accumulator was not 0x00 before operation
Opcode Matrix
NEG
OP
NEG
ED4424
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register