diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-02-23 00:24:02 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-02-23 00:24:02 -0500 |
commit | c1fed533555d00ebffd8e5ac499d9b489ae17fb3 (patch) | |
tree | 0fa43d1a03d4835b4cf377caadf0a5d28ee8e536 /Optimizing-assembly-code.md | |
parent | 7060a580015f1791a5936a7f1861677779b2441f (diff) |
Avoid linking to specific lines, since they can easily change by reformatting code, editing comments, etc; people can just find the routine name in question
Diffstat (limited to 'Optimizing-assembly-code.md')
-rw-r--r-- | Optimizing-assembly-code.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md index 9163001..d8decfe 100644 --- a/Optimizing-assembly-code.md +++ b/Optimizing-assembly-code.md @@ -116,7 +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#L2811-L2812) actually does this!) +(The `SpeciesItemBoost` routine in [engine/battle/effect_commands.asm](.../blob/master/engine/battle/effect_commands.asm) actually does this!) ### Add `a` to a 16-bit register @@ -268,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#L3-L5): +Or better, use the `lb` macro in [macros/code.asm](../blob/master/macros/code.asm): ```asm lb bc, ONE, TWO ; 3 bytes, 3 cycles @@ -487,7 +487,7 @@ But do: ... ``` -`_hl_` is a routine already defined in [home.asm](../blob/master/home.asm#L99-L100): +`_hl_` is a routine already defined in [home.asm](../blob/master/home.asm): ```asm _hl_:: |