<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3AOpcodes%3ACPI</id>
	<title>Z80:Opcodes:CPI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3AOpcodes%3ACPI"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Opcodes:CPI&amp;action=history"/>
	<updated>2026-05-02T06:10:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Opcodes:CPI&amp;diff=319&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Opcodes:CPI&amp;diff=319&amp;oldid=prev"/>
		<updated>2016-02-05T22:38:22Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Short summary of instruction --&amp;gt;&lt;br /&gt;
Multiple instructions combined into one. CPD does these things in this order:&lt;br /&gt;
# [[Z80:Opcodes:CP|CP]] (HL)&lt;br /&gt;
# [[Z80:Opcodes:INC|INC]] HL&lt;br /&gt;
# [[Z80:Opcodes:DEC|DEC]] BC&lt;br /&gt;
  &lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Syntax for this instruction --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No operands.&lt;br /&gt;
&lt;br /&gt;
    CPI&lt;br /&gt;
&lt;br /&gt;
== Effects ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- What the instruction does to flags --&amp;gt;&lt;br /&gt;
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) &amp;#039;&amp;#039;&amp;#039;before&amp;#039;&amp;#039;&amp;#039; HL is increased.&lt;br /&gt;
&lt;br /&gt;
== Uses ==&lt;br /&gt;
&lt;br /&gt;
See [[Z80:Opcodes:CPIR|CPIR]] for one example use.&lt;br /&gt;
&lt;br /&gt;
== T-States ==&lt;br /&gt;
16 t-states&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Other instructions that are related to this one --&amp;gt;&lt;br /&gt;
[[Z80:Opcodes:BIT|BIT]],[[Z80:Opcodes:CALL|CALL]],[[Z80:Opcodes:CP|CP]],[[Z80:Opcodes:CPD|CPD]],[[Z80:Opcodes:CPDR|CPDR]],[[Z80:Opcodes:CPIR|CPIR]],[[Z80:Opcodes:JP|JP]],[[Z80:Opcodes:JR|JR]]&lt;br /&gt;
&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
[[Category:Z80 Assembly]]&lt;br /&gt;
[[Category:Z80 Heaven]]&lt;br /&gt;
[[Category:Z80 Opcodes]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>