http://learn.cemetech.net/index.php?title=Z80:Opcodes:INC&feed=atom&action=history
Z80:Opcodes:INC - Revision history
2024-03-29T11:25:04Z
Revision history for this page on the wiki
MediaWiki 1.34.0
http://learn.cemetech.net/index.php?title=Z80:Opcodes:INC&diff=262&oldid=prev
Maintenance script: Initial automated import
2016-02-05T22:00:51Z
<p>Initial automated import</p>
<p><b>New page</b></p><div><!-- Short summary of instruction --><br />
Increases operand by 1.<br />
<br />
== Syntax ==<br />
<br />
<!-- Syntax for this instruction --><br />
<br />
inc op8 ;8 bits<br />
inc op16 ;16 bits<br />
<br />
=== Allowed Instructions ===<br />
<br />
<!-- All possible inputs --><br />
<br />
inc a<br />
inc b<br />
inc c<br />
inc d<br />
inc e<br />
inc h<br />
inc l<br />
inc ixh<br />
inc ixl<br />
inc iyh<br />
inc iyl<br />
inc (hl)<br />
inc (ix+n)<br />
inc (iy+n)<br />
<br />
inc bc<br />
inc de<br />
inc hl<br />
inc ix<br />
inc iy<br />
inc sp<br />
<br />
== Effects ==<br />
<br />
<!-- What the instruction does to flags --><br />
<br />
'''8 Bits'''<br />
<br />
Preserves C flag, N flag is reset, P/V detects overflow and rest are modified by definition.<br />
<br />
'''16 Bits'''<br />
<br />
No flags altered.<br />
<br />
== Uses ==<br />
<br />
<!-- What the instruction can be used for --><br />
<br />
== T-States ==<br />
r denotes 8-bit register.<br />
rr represents a two byte register pair: BC, DE, HL, SP<br />
<br />
{| class="wikitable"<br />
| r || 4 <br />
|-<br />
| (hl) || 11 <br />
|-<br />
| (ix+X) || 23 <br />
|-<br />
| (iy+X) || 23 <br />
|-<br />
| rr || 6 <br />
|-<br />
| ix || 10 <br />
|-<br />
| iy || 10 <br />
|}<br />
<br />
== See Also ==<br />
<br />
<!-- Other instructions that are related to this one --><br />
[[Z80:Opcodes:ADC|ADC]],[[Z80:Opcodes:ADD|ADD]],[[Z80:Opcodes:DAA|DAA]],[[Z80:Opcodes:DEC|DEC]],[[Z80:Opcodes:SBC|SBC]],[[Z80:Opcodes:SUB|SUB]]<br />
<br />
{{lowercase}}<br />
[[Category:Z80 Assembly]]<br />
[[Category:Z80 Heaven]]<br />
[[Category:Z80 Opcodes]]</div>
Maintenance script