Changes

Jump to: navigation, search

Z80

No change in size, 10 March
/* Z80 Instructions */
|-
| cp (I+D) || 11i11101 10111110 dddddddd || 5 || 19 (4,4,3,5,3) || + || + || X || + || X || V || 1 || + || tmp := a - (I+D), f5 := (I+D).5, f3 := (I+D).3
|-
| dec R || 00rrr101 || 1 || 4 (4) || + || + || + || + || + || V || 1 || - || R -= 1 ||rowspan=4|Decrement
|-
| dec J || 11i11101 0010b101 || 2 || 8 (4,4) || + || + || + || + || + || V || 1 || - || J -= 1
|-
| dec (hl) || 00110101 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 1 || - || (hl) -= 1
|-
| dec (I+D) || 11i11101 00110101 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 1 || - || (I+D) -= 1
|-
| inc R || 00rrr100 || 1 || 4 (4) || + || + || + || + || + || V || 0 || - || R += 1 ||rowspan=4|Increment
|-
| inc J || 11i11101 0010b100 || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || - || J += 1
|-
| inc (hl) || 00110100 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 0 || - || (hl) += 1
|-
| inc (I+D) || 11i11101 00110100 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 0 || - || (I+D) += 1
|}
hf := a.4 XOR tmp.4, a := tmp
|| Decimal Adjust Accumulator
|-
| dec R || 00rrr101 || 1 || 4 (4) || + || + || + || + || + || V || 1 || - || R -= 1 ||rowspan=6|Decrement
|-
| dec J || 11i11101 0010b101 || 2 || 8 (4,4) || + || + || + || + || + || V || 1 || - || J -= 1
|-
| dec (hl) || 00110101 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 1 || - || (hl) -= 1
|-
| dec (I+D) || 11i11101 00110101 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 1 || - || (I+D) -= 1
|-
| dec Q || 00qq1011 || 2 || 6 (6) || - || - || - || - || - || - || - || - || Q -= 1
|-
| in f,(c) || 11101101 01110000 || 4 || 12 (4,4,4) || + || + || + || 0 || + || P || 0 || - || tmp := ((c))
|-
| inc R || 00rrr100 || 1 || 4 (4) || + || + || + || + || + || V || 0 || - || R += 1 ||rowspan=6|Increment
|-
| inc J || 11i11101 0010b100 || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || - || J += 1
|-
| inc (hl) || 00110100 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 0 || - || (hl) += 1
|-
| inc (I+D) || 11i11101 00110100 dddddddd || 6 || 23 (4,4,3,5,4,3) || + || + || + || + || + || V || 0 || - || (I+D) += 1
|-
| inc Q || 00qq0011 || 2 || 6 (6) || - || - || - || - || - || - || - || - || Q += 1
13,173
edits