summaryrefslogtreecommitdiff
path: root/Optimizing-assembly-code.md
diff options
context:
space:
mode:
authornullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2019-02-21 14:18:10 +0800
committernullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2019-02-21 14:18:10 +0800
commit13465631ea237dbe4bce0017be434fab93c8b018 (patch)
tree0b027a408f7f9ea60fd33f67bc665f4209266e94 /Optimizing-assembly-code.md
parentae496762561b9b702311549b713b5ac5f405d178 (diff)
Link to code excerpts
Diffstat (limited to 'Optimizing-assembly-code.md')
-rw-r--r--Optimizing-assembly-code.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md
index da5cc4f..9163001 100644
--- a/Optimizing-assembly-code.md
+++ b/Optimizing-assembly-code.md
@@ -116,8 +116,7 @@ But do:
add hl, hl ; 1 byte, 2 cycles
```
-(The `SpeciesItemBoost` routine in [engine/battle/effect_commands.asm](../blob/master/engine/battle/effect_commands.asm) actually does this!)
-
+(The `SpeciesItemBoost` routine in [engine/battle/effect_commands.asm](.../blob/master/engine/battle/effect_commands.asm#L2811-L2812) actually does this!)
### Add `a` to a 16-bit register
@@ -269,7 +268,7 @@ But do:
ld bc, ONE << 8 | TWO ; 3 bytes, 3 cycles
```
-Or better, use the `lb` macro in [macros/code.asm](../blob/master/macros/code.asm):
+Or better, use the `lb` macro in [macros/code.asm](../blob/master/macros/code.asm#L3-L5):
```asm
lb bc, ONE, TWO ; 3 bytes, 3 cycles
@@ -488,7 +487,7 @@ But do:
...
```
-`_hl_` is a routine already defined in [home.asm](../blob/master/home.asm):
+`_hl_` is a routine already defined in [home.asm](../blob/master/home.asm#L99-L100):
```asm
_hl_::