z80:Opcodes:NEG

From Learn @ Cemetech
Revision as of 18:30, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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