z80:Opcodes:NEG

From Learn @ Cemetech
Jump to navigationJump to search

NEG negates the accumulator.

Syntax

   neg

Effects

N flag is set, all other flags modified by definition.

Uses

This command literally subtracts A from 0. This explains what "modified by definition" means in the Effects section above.

T-States

8 t-states

See Also

CPL,SUB