Anonymous user
GB Programming: Difference between revisions
→Instructions get!: Remove instructions that don't exist on the Game Boy
>ISSOtm m (→Chaining conditionals: Fixed a mistake.) |
>ISSOtm (→Instructions get!: Remove instructions that don't exist on the Game Boy) |
||
Line 501:
!Syntax
!Effect
!Z
!C
|-
Line 509 ⟶ 507:
|Adds one to the operand ("increments" it)
|Affected, except for reg16
|Not affected
|-
Line 516 ⟶ 512:
|Subtracts one to the operand ("decrements" it)
|Affected, except for reg16
|Not affected
|-
|ADD A, <nowiki>{reg8 | imm8
|Adds the operand to the accumulator
|Affected
|Not affected
|-
Line 530 ⟶ 522:
|Adds the operand to HL
|Affected
|Not affected
|-
|SUB <nowiki>{reg8 | imm8
|Subtracts the operand from the accumulator. The syntax SUB A, <nowiki>{...}</nowiki> is also valid but less common.
|Affected
|Not affected
|}
|