Changes

Z80

8 bytes added, 10 March
/* Z80 Instructions */
|-
| inc (I+D) || 11i11101 00110100 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 0 || - || (I+D) += 1
|}
 
=== 16-bit ALU group ===
 
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! NOPs !! Cycles !! S !! Z !! 5 !! H !! 3 !! P !! N !! C !! Effect !! Description
|-
| add hl,Q || 00qq1001 || 3 || 11 (4,4,3) || - || - || + || + || + || - || 0 || + || hl += Q
|-
| add I,Q || 11i11101 00qq1001 || 4 || 15 (4,4,4,3) || - || - || + || + || + || - || 0 || + || I += Q
|-
| adc hl,Q || 11101101 01qq1010 || 4 || 15 (4,4,4,3) || + || + || + || + || + || V || 0 || + || hl += Q + cf
|-
| sbc hl,Q || 11101101 01qq0010 || 4 || 15 (4,4,4,3) || + || + || + || + || + || V || 1 || + || hl -= Q + cf
|-
| dec Q || 00qq1011 || 2 || 6 (6) || - || - || - || - || - || - || - || - || Q -= 1
|-
| dec I || 11i11101 00101011 || 3 || 10 (4,6) || - || - || - || - || - || - || - || - || I -= 1
|-
| inc Q || 00qq0011 || 2 || 6 (6) || - || - || - || - || - || - || - || - || Q += 1
|-
| inc I || 11i11101 00100011 || 3 || 10 (4,6) || - || - || - || - || - || - || - || - || I += 1
|}
|-
| otir || 11101101 10110011 || 6/5 || 21/16 (4,5,3,4,5)/(4,5,3,4) || + || + || + || X || + || X || X || X || outi, if b <> 0 then pc -= 2 || I/O Output and Increment, Repeat
|}
 
=== Letter A ===
 
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! NOPs !! Cycles !! S !! Z !! 5 !! H !! 3 !! P !! N !! C !! Effect !! Description
|-
| adc hl,Q || 11101101 01qq1010 || 4 || 15 (4,4,4,3) || + || + || + || + || + || V || 0 || + || hl += Q + cf
|-
| add hl,Q || 00qq1001 || 3 || 11 (4,4,3) || - || - || + || + || + || - || 0 || + || hl += Q
|-
| add I,Q || 11i11101 00qq1001 || 4 || 15 (4,4,4,3) || - || - || + || + || + || - || 0 || + || I += Q
|}
hf := a.4 XOR tmp.4, a := tmp
|| Decimal Adjust Accumulator
|-
| dec Q || 00qq1011 || 2 || 6 (6) || - || - || - || - || - || - || - || - || Q -= 1
|-
| dec I || 11i11101 00101011 || 3 || 10 (4,6) || - || - || - || - || - || - || - || - || I -= 1
|-
| di || 11110011 || 1 || 4 (4) || - || - || - || - || - || - || - || - || iff1 := 0, iff2 := 0 || Disable Interrupts
|-
| in f,(c) || 11101101 01110000 || 4 || 12 (4,4,4) || + || + || + || 0 || + || P || 0 || - || tmp := ((c))
|-
| inc Q || 00qq0011 || 2 || 6 (6) || - || - || - || - || - || - || - || - || Q += 1
|-
| inc I || 11i11101 00100011 || 3 || 10 (4,6) || - || - || - || - || - || - || - || - || I += 1
|}
{| class="wikitable" style="white-space: nowrap;"
! Instruction !! Opcode !! NOPs !! Cycles !! S !! Z !! 5 !! H !! 3 !! P !! N !! C !! Effect !! Description
|-
| sbc hl,Q || 11101101 01qq0010 || 4 || 15 (4,4,4,3) || + || + || + || + || + || V || 1 || + || hl -= Q + cf
|-
| scf || 00110111 || 1 || 4 (4) || - || - || A || 0 || A || - || 0 || 1 || nothing else || Set Carry Flag
13,173
edits