Changes
Z80
,* [[Z80 - undocumented opcodes]]
== Tutorials ==
== Weblinks ==
|- style="background:#efefef;"
|ADC A, (IX + N)||19||3||||DD 8E XX
|-style="background:#efefef;"
|ADC A, (IY + N)||19||3||||FD 8E XX
|-
|ADD HL, BC||11||1||--?- 0 *||09||rowspan=4|Add (16-bit)||rowspan=4|HL = HL + ss
|-
|ADD HL, DE||11||1||||19
|-
|ADD HL, HL||11||1||||29
|ADD IX, BC||15||2||--?- 0 *||DD 09||rowspan=4|Add (IX register)||rowspan=4|IX = IX + pp
|- style="background:#efefef;"
|ADD IX, DE||15||2|||| DD 19||||
|- style="background:#efefef;"
|ADD IX, IX||15||2|||| DD 29||||
|- style="background:#efefef;"
|ADD IX, SP||15||2|||| DD 39||||
|-
|ADD IY, BC||15||2||--?- 0 *||FD 09||rowspan=4|Add (IY register)||rowspan=4|IY = IY + rr
|BIT b,r||8||2||?*1?0-||CB 40+8*b+rb||rowspan=4|Test Bit||rowspan=4|m&{2^b}||
|-
|BIT b,(HL)||12||2||||CB 46+8*b
|-
|BIT b,(IX+N)||20||4||||DD CB XX 46+8*b
|-
|BIT b,(IY+N)||20||4||||FD CB XX 46+8*b
|- style="background:#efefef;"
|CALL NN||17||3||------||CD XX XX||Unconditional Call||-(SP)=PC,PC=nn
|-
|CALL C,NN||17/1||3||------||DC XX XX||rowspan=8|Conditional Call||If Carry = 1
|-
|CALL NC,NN||17/1||3||||D4 XX XX||If carry = 0
|-
|CALL M,NN||17/1||3||||FC XX XX||If Sign = 1 (negative)
|-
|CALL P,NN||17/1||3||||F4 XX XX||If Sign = 0 (positive)
|-
|CALL Z,NN||17/1||3||||CC XX XX||If Zero = 1 (ans.=0)
|-
|CALL NZ,NN||17/1||3||||C4 XX XX||If Zero = 0 (non-zero)
|-
|CALL PE,NN||17/1||3||||EC XX XX||If Parity = 1 (even)
|-
|CALL PO,NN||17/1||3||||E4 XX XX||If Parity = 0 (odd)
|- style="background:#efefef;"
|CCF||4||1||--?-0*||3F||Complement Carry Flag||CY=~CY |
|-
|CP r||4||1||***V1*||B8+rb||rowspan=5|Compare||rowspan=5|Compare A-s
|-
|CP N||7||2||||FE XX
|-
|CP (HL)||7||1||||BE
|-
|CP (IX+N)||19||3||||DD BE XX
|-
|CP (IY+N)||19||3||||FD BE XX
|-
|CPD||16||2||****1-||ED A9||Compare and Decrement||A-(HL),HL=HL-1,BC=BC-1
|-
|CPDR||21/1||2||****1-||ED B9||Compare, Dec., Repeat||CPD till A=(HL)or BC=0
|-
|CPI||16||2||****1-||ED A1||Compare and Increment||A-(HL),HL=HL+1,BC=BC-1
|-
|CPIR||21/1||2||****1-||ED B1||Compare, Inc., Repeat||CPI till A=(HL)or BC=0
|- style="background:#efefef;"
|CPL||4||1||--1-1-||2F||Complement||A=~A
|-
|DAA||4||1||***P-*||27||Decimal Adjust Acc.||A=BCD format (dec.)
|- style="background:#efefef;"
|DEC A||4||1||***V1-||3D||rowspan=10|Decrement (8-bit)||rowspan=10|s=s-1
|- style="background:#efefef;"
|DEC B||4||1||||05
|- style="background:#efefef;"
|DEC C||4||1||||0D
|- style="background:#efefef;"
|DEC D||4||1||||15
|- style="background:#efefef;"
|DEC E||4||1||||1D
|- style="background:#efefef;"
|DEC H||4||1||||25
|- style="background:#efefef;"
|DEC L||4||2||||2D
|- style="background:#efefef;"
|DEC (HL)||11||1||||35
|- style="background:#efefef;"
|DEC (IX+N)||23||3||||DD 35 XX
|- style="background:#efefef;"
|DEC (IY+N)||23||3||||FD 35 XX
|-
|DEC BC||6||1||------||0B||rowspan=4|Decrement (16-bit)||rowspan=4|ss=ss-1
|-
|DEC DE||6||1||||1B
|-
|DEC HL||6||1||||2B
|-
|DEC SP||6||1||||3B
|- style="background:#efefef;"
|DEC IX||10||2||------||DD 2B||rowspan=2|Decrement||rowspan=2|xx=xx-1
|- style="background:#efefef;"
|DEC IY||10||2||||FD 2B
|-
|}
+-------------+----+---+------+------------+---------------------+----------------------+
+-------------+----+---+------+------------+---------------------+----------------------+
|DI | 4 | 1 |------|F3 |Disable Interrupts | |