Changes

Z80

102 bytes added, 09:12, 1 September 2024
/* Z80 Instructions: D */
tmp => flags, cf := cf OR [a > 0x99],
hf := a.4 XOR tmp.4, a := tmp
|| Decimal Adjust Accumulator
|-
| dec R || 00rrr101 || 4 || + || + || + || + || + || V || 1 || - || R -= 1||rowspan=6|Decrement
|-
| dec J || 11i11101 0010b101 || 8 || + || + || + || + || + || V || 1 || - || J -= 1
| dec I || 11i11101 00101011 || 10 || - || - || - || - || - || - || - || - || I -= 1
|-
| di || 11110011 || 4 || - || - || - || - || - || - || - || - || iff1 := 0, iff2 := 0|| Disable Interrupts
|-
| djnz E || 00010000 dddddddd || 13/8 || - || - || - || - || - || - || - || - || b -= 1, if b <> 0 then pc := E|| Decrement, Jump Non-Zero
|}
13,173
edits