z80:Opcodes:CPD

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.

Multiple instructions combined into one. CPD does these things in this order:

  1. CP (HL)
  2. DEC HL
  3. DEC BC

Syntax

No operands.

   CPD

Effects

The carry is preserved, N is set and all the other flags are affected as defined. P/V denotes the overflowing of BC, while the Z flag is set if A=(HL) before HL is decreased.

Uses

See CPDR for potential uses.

See Also

BIT,CALL,CP,CPDR,CPI,CPIR,JP,JR