summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-08-29 19:42:56 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-08-29 19:42:56 -0400
commit30f79c314b9b8636a949bb44cbcdf309783f9aa1 (patch)
tree1bcb4143e8c5c4868129e7f3a1aadeadd9859d53
parentca865b809d890dd722cca56d4030bd47bb1b2b65 (diff)
asm
-rw-r--r--Optimizing-assembly-code.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md
index 3acb5cb..a2c52d9 100644
--- a/Optimizing-assembly-code.md
+++ b/Optimizing-assembly-code.md
@@ -1047,7 +1047,7 @@ But do:
If you don't need to preserve the value in `a`, then don't do:
-```
+```asm
; 4 bytes, 4/5 cycles
cp $80
jr nc, .negative
@@ -1055,7 +1055,7 @@ If you don't need to preserve the value in `a`, then don't do:
And don't do:
-```
+```asm
; 4 bytes, 4/5 cycles
bit 7, a
jr nz, .negative
@@ -1063,7 +1063,7 @@ And don't do:
Instead, do:
-```
+```asm
; 3 bytes, 3/4 cycles
rlca
jr c, .negative