From d5f6f7f03e146f3e4e3a5bd5fd126e8bd61893e0 Mon Sep 17 00:00:00 2001 From: JL2210 Date: Thu, 26 Nov 2020 13:04:20 -0500 Subject: Remove less efficient version --- Optimizing-assembly-code.md | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'Optimizing-assembly-code.md') 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 -- cgit v1.2.3