z80:Opcodes:NEG

From Learn @ Cemetech
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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