Skip to content

Commit

Permalink
Fix affected flags for add instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
TIny-Hacker committed Apr 20, 2024
1 parent 9e1d340 commit e153201
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions content/instructions/arithmetic.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ Adds the value in `reg24` to the value in `hl`.
| `sp` | `11` |
* Bytes: 1
* Flags:
* S: Affected as [defined](../flags/#s-sign)
* Z: Affected as [defined](../flags/#z-zero)
* H: Affected as [defined](../flags/#h-half-carry)
* P/V: Detects overflow
* H: Set if carry from bit 11, reset otherwise
* N: Reset
* C: Affected as [defined](../flags/#c-carry)
* Cycles: 1F
Expand Down Expand Up @@ -181,10 +178,7 @@ Adds the value in `reg24` to the value in `regi`.
| `ix`/`iy` | `10` |
* Bytes: 2
* Flags:
* S: Affected as [defined](../flags/#s-sign)
* Z: Affected as [defined](../flags/#z-zero)
* H: Affected as [defined](../flags/#h-half-carry)
* P/V: Detects overflow
* H: Set if carry from bit 11, reset otherwise
* N: Reset
* C: Affected as [defined](../flags/#c-carry)
* Cycles: 2F
Expand Down

0 comments on commit e153201

Please sign in to comment.