diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-24 17:03:56 -0500 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-24 17:04:41 -0500 |
| commit | 750ed9aeeb9897adbf0b993da8ff02f57efa5e28 (patch) | |
| tree | 7a425eaae4fac26b3c36466abc9e49bfa0de4d16 /Optimizing-assembly-code.md | |
| parent | 3fb2506a3c81321b8f49ce73f2e9a66a4ee9e22f (diff) | |
no_carry
Diffstat (limited to 'Optimizing-assembly-code.md')
| -rw-r--r-- | Optimizing-assembly-code.md | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md index dae62eb..bc5c107 100644 --- a/Optimizing-assembly-code.md +++ b/Optimizing-assembly-code.md @@ -635,7 +635,7 @@ and don't do: ld h, a ``` -But do: +and don't do: ```asm ; 5 bytes, 5 or 6 cycles @@ -643,11 +643,10 @@ But do: ld l, a jr nc, .no_carry inc h - -.no_carry: +.no_carry ``` -Or better, do: +But do: ```asm ; 5 bytes, 5 cycles @@ -693,8 +692,7 @@ But do: ld l, a jr nc, .no_carry dec h - -.no_carry: +.no_carry ``` Or if you can spare another 16-bit register, do: |
