diff options
| author | JL2210 <larrowe.semaj11@gmail.com> | 2020-11-26 13:04:20 -0500 |
|---|---|---|
| committer | JL2210 <larrowe.semaj11@gmail.com> | 2020-11-26 13:04:20 -0500 |
| commit | d5f6f7f03e146f3e4e3a5bd5fd126e8bd61893e0 (patch) | |
| tree | 39094cb47ae7985b62e70172a9dc461b08106122 /Optimizing-assembly-code.md | |
| parent | 64934430d7cc3683dec4490216a15b3d4339d538 (diff) | |
Remove less efficient version
Diffstat (limited to 'Optimizing-assembly-code.md')
| -rw-r--r-- | Optimizing-assembly-code.md | 22 |
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 |
