summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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