diff options
| author | iimarckus <iimarckus@gmail.com> | 2020-09-26 02:09:55 -0600 |
|---|---|---|
| committer | iimarckus <iimarckus@gmail.com> | 2020-09-26 02:09:55 -0600 |
| commit | c1a8d3474259cf712ef00b29a24316cd90794a80 (patch) | |
| tree | 03c075f63dac0d25f60c89a0f313fdda00577b50 | |
| parent | 2860eb2607fe6f2fc13decb039a3b9260811fc65 (diff) | |
wc296 renamed to wUnusedBCDNumber
| -rw-r--r-- | Custom-order-for-the-Old-Pokédex-mode.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Custom-order-for-the-Old-Pokédex-mode.md b/Custom-order-for-the-Old-Pokédex-mode.md index a91059c..69ffd2d 100644 --- a/Custom-order-for-the-Old-Pokédex-mode.md +++ b/Custom-order-for-the-Old-Pokédex-mode.md @@ -115,7 +115,7 @@ Pokedex_PrintNumberIfOldMode: ld de, -SCREEN_WIDTH add hl, de call Pokedex_GetDexNumber - ld de, wc296 + ld de, wUnusedBCDNumber lb bc, PRINTNUM_LEADINGZEROS | 1, 3 call PrintNum @@ -141,12 +141,12 @@ Pokedex_GetDexNumber: cp b jr nz, .loop ld a, c - ld [wc296], a + ld [wUnusedBCDNumber], a pop hl pop bc ret ``` -Before we move on, please note "wc296". This is a point in wRAM where the correct Pokedex number is stored. This variable is read from in some unused code, but never written too or read from otherwise, so it is safe to use in Crystal vanilla. +Before we move on, please note "wUnusedBCDNumber". This is a point in wRAM where the correct Pokedex number is stored. This variable is read from in some unused code, but never written too or read from otherwise, so it is safe to use in Crystal vanilla. Edit [pokedex_2.asm](../blob/master/engine/pokedex/pokedex_2.asm): ```diff @@ -158,7 +158,7 @@ Edit [pokedex_2.asm](../blob/master/engine/pokedex/pokedex_2.asm): ld [hli], a ;ld de, wTempSpecies call Pokedex_GetDexNumber - ld de, wc296 + ld de, wUnusedBCDNumber lb bc, PRINTNUM_LEADINGZEROS | 1, 3 call PrintNum |
