diff options
Diffstat (limited to 'Optimizing-assembly-code.md')
-rw-r--r-- | Optimizing-assembly-code.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md index 2b51bf1..8b9d8f7 100644 --- a/Optimizing-assembly-code.md +++ b/Optimizing-assembly-code.md @@ -330,7 +330,7 @@ When possible, avoid doing: dec hl ; 1 byte, 2 cycles ``` -If the low byte won't overflow, then do: +If the low byte *definitely* won't overflow, then do: ```asm inc l ; 1 byte, 1 cycle @@ -340,6 +340,8 @@ If the low byte won't overflow, then do: dec l ; 1 byte, 1 cycle ``` +This is applicable, for instance, if you're reading a data table via `hl` one byte at a time, it has no more than 256 entries, and it's in its own `SECTION` which has been `ALIGN`ed to 8 bits. It's unlikely to apply to pokecrystal's existing systems. + ### Load from an address to `hl` |