Difference between revisions of "Z80:Opcodes:NEG"

From Learn @ Cemetech
Jump to navigationJump to search
(Initial automated import)
 
(No difference)

Latest revision as of 22:30, 5 February 2016

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