z80:Opcodes:CPI

From Learn @ Cemetech
Revision as of 22:38, 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

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

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

Syntax

No operands.

   CPI

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 increased.

Uses

See CPIR for one example use.

T-States

16 t-states

See Also

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