<?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%3AINC</id>
	<title>Z80:Opcodes:INC - 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%3AINC"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Opcodes:INC&amp;action=history"/>
	<updated>2026-04-30T04:56:02Z</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:INC&amp;diff=262&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:INC&amp;diff=262&amp;oldid=prev"/>
		<updated>2016-02-05T22:00:51Z</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;
Increases operand by 1.&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;
    inc op8		;8 bits&lt;br /&gt;
    inc op16	;16 bits&lt;br /&gt;
&lt;br /&gt;
=== Allowed Instructions ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- All possible inputs --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    inc a&lt;br /&gt;
    inc b&lt;br /&gt;
    inc c&lt;br /&gt;
    inc d&lt;br /&gt;
    inc e&lt;br /&gt;
    inc h&lt;br /&gt;
    inc l&lt;br /&gt;
    inc ixh&lt;br /&gt;
    inc ixl&lt;br /&gt;
    inc iyh&lt;br /&gt;
    inc iyl&lt;br /&gt;
    inc (hl)&lt;br /&gt;
    inc (ix+n)&lt;br /&gt;
    inc (iy+n)&lt;br /&gt;
    &lt;br /&gt;
    inc bc&lt;br /&gt;
    inc de&lt;br /&gt;
    inc hl&lt;br /&gt;
    inc ix&lt;br /&gt;
    inc iy&lt;br /&gt;
    inc sp&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;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;8 Bits&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Preserves C flag, N flag is reset, P/V detects overflow and rest are modified by definition.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;16 Bits&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
No flags altered.&lt;br /&gt;
&lt;br /&gt;
== Uses ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- What the instruction can be used for --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== T-States ==&lt;br /&gt;
r denotes 8-bit register.&lt;br /&gt;
rr represents a two byte register pair: BC, DE, HL, SP&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| r || 4 &lt;br /&gt;
|-&lt;br /&gt;
| (hl) || 11 &lt;br /&gt;
|-&lt;br /&gt;
| (ix+X) || 23 &lt;br /&gt;
|-&lt;br /&gt;
| (iy+X) || 23 &lt;br /&gt;
|-&lt;br /&gt;
| rr || 6 &lt;br /&gt;
|-&lt;br /&gt;
| ix || 10 &lt;br /&gt;
|-&lt;br /&gt;
| iy || 10 &lt;br /&gt;
|}&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:ADC|ADC]],[[Z80:Opcodes:ADD|ADD]],[[Z80:Opcodes:DAA|DAA]],[[Z80:Opcodes:DEC|DEC]],[[Z80:Opcodes:SBC|SBC]],[[Z80:Opcodes:SUB|SUB]]&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>