diff options
Diffstat (limited to 'Optimizing-assembly-code.md')
-rw-r--r-- | Optimizing-assembly-code.md | 7 |
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_:: |