summaryrefslogtreecommitdiff
path: root/Optimizing-assembly-code.md
diff options
context:
space:
mode:
Diffstat (limited to 'Optimizing-assembly-code.md')
-rw-r--r--Optimizing-assembly-code.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md
index b11fe35..8d9f3ab 100644
--- a/Optimizing-assembly-code.md
+++ b/Optimizing-assembly-code.md
@@ -1138,9 +1138,9 @@ And don't do:
ld a, e
adc 0
ld e, a
- jr nc, .no_carry_3
+ jr nc, .no_carry
inc d
-.no_carry_3
+.no_carry
```
```asm
@@ -1148,9 +1148,9 @@ And don't do:
ld a, e
sbc 0
ld e, a
- jr nc, .no_carry_3
+ jr nc, .no_carry
dec d
-.no_carry_3
+.no_carry
```
(That would be applying the "[Add or subtract the carry flag from a register besides `a`](#add-or-subtract-the-carry-flag-from-a-register-besides-a)" optimization to part of the first way.)