summaryrefslogtreecommitdiff
path: root/Optimizing-assembly-code.md
diff options
context:
space:
mode:
authorJL2210 <larrowe.semaj11@gmail.com>2020-11-26 13:04:20 -0500
committerJL2210 <larrowe.semaj11@gmail.com>2020-11-26 13:04:20 -0500
commitd5f6f7f03e146f3e4e3a5bd5fd126e8bd61893e0 (patch)
tree39094cb47ae7985b62e70172a9dc461b08106122 /Optimizing-assembly-code.md
parent64934430d7cc3683dec4490216a15b3d4339d538 (diff)
Remove less efficient version
Diffstat (limited to 'Optimizing-assembly-code.md')
-rw-r--r--Optimizing-assembly-code.md22
1 files changed, 1 insertions, 21 deletions
diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md
index bf866dc..2e85fd4 100644
--- a/Optimizing-assembly-code.md
+++ b/Optimizing-assembly-code.md
@@ -206,27 +206,7 @@ endr
But do:
```asm
-; 17 bytes, 17 cycles
- ld b, a
- rlca
- rlca
- xor b
- and $aa
- xor b
- ld b, a
- rlca
- rlca
- rlca
- rrc b
- xor b
- and $66
- xor b
-```
-
-A slightly faster version of the above code that takes advantage of the `swap` opcode that exists on the GB but is missing on the Z80. (Adapted by nitro2k01.)
-
-```asm
- ; 15 bytes, 15 cycles
+; 15 bytes, 15 cycles
ld b, a
rlca
rlca