Changes

Jump to: navigation, search

Z80

No change in size, 11 March
/* 8-bit ALU group */
|-
! Instruction !! Opcode !! NOPs !! Cycles !! S !! Z !! 5 !! H !! 3 !! P !! N !! C !! Effect !! Description
|-
| inc r || 00rrr100 || 1 || 4 (4) || + || + || + || + || + || V || 0 || - || r += 1 ||rowspan=4|Increment
|-
| inc p || 11i11101 00ppp100 || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || - || p += 1
|-
| inc (hl) || 00110100 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 0 || - || (hl) += 1
|-
| inc (ixy+d) || 11i11101 00110100 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 0 || - || (ixy+d) += 1
|-
| dec r || 00rrr101 || 1 || 4 (4) || + || + || + || + || + || V || 1 || - || r -= 1 ||rowspan=4|Decrement
|-
| dec p || 11i11101 00ppp101 || 2 || 8 (4,4) || + || + || + || + || + || V || 1 || - || p -= 1
|-
| dec (hl) || 00110101 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 1 || - || (hl) -= 1
|-
| dec (ixy+d) || 11i11101 00110101 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 1 || - || (ixy+d) -= 1
|-
| add a,r || 10000rrr || 1 || 4 (4) || + || + || + || + || + || V || 0 || + || a += r ||rowspan=5|Add
|-
| cp n || 11111110 nnnnnnnn || 2 || 7 (4,3) || + || + || X || + || X || V || 1 || + || tmp := a - n, f5 := n.5, f3 := n.3
|-
| inc r || 00rrr100 || 1 || 4 (4) || + || + || + || + || + || V || 0 || - || r += 1 ||rowspan=4|Increment
|-
| inc p || 11i11101 00ppp100 || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || - || p += 1
|-
| inc (hl) || 00110100 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 0 || - || (hl) += 1
|-
| inc (ixy+d) || 11i11101 00110100 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 0 || - || (ixy+d) += 1
|-
| dec r || 00rrr101 || 1 || 4 (4) || + || + || + || + || + || V || 1 || - || r -= 1 ||rowspan=4|Decrement
|-
| dec p || 11i11101 00ppp101 || 2 || 8 (4,4) || + || + || + || + || + || V || 1 || - || p -= 1
|-
| dec (hl) || 00110101 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 1 || - || (hl) -= 1
|-
| dec (ixy+d) || 11i11101 00110101 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 1 || - || (ixy+d) -= 1
|}
13,173
edits