Jump to content

Glitch Pokédex sorting: Difference between revisions

m
>Torchickens
 
(3 intermediate revisions by 2 users not shown)
Line 1:
{{Arbitrary code execution}}
{{Major glitches}}
{{Summary page}}
{{PRAMA|glitch-pokedex-ace}}
Line 6 ⟶ 5:
'''Glitch Pokédex sortings''' are invalid Pokédex listing sortings found in {{GSC}}.
 
LikeThe valid2nd sortingsgeneration includingof pokémon games allow the player to select three different modes to order pokémon within the pokédex. These modes include "New Pokédex mode", "Old Pokédex mode" and "A to Z mode",. thereWhen area glitchspecific Pokédexmode sortingsis whichselected, affectthe orgame arewill interpretedsave bythe value of the gamelast inselected unintendedmode in waysmemory.
 
LikeWhen withthe manypokédex [[:category:glitchis things|glitchselected things]]from the start menu, glitchthe game uses a jumptable to select which sorting function should be used. By changing the value of the last selected mode, it's possible to index this jumptable out of bounds. Because of this, certain modes Pokédexare sortingsable canto [[arbitrary code execution|execute arbitrary code]], such as glitch mode 09's execution of $FA20 (Echo RAM for $DA20) in Crystal.
 
==Technical details==
 
When opening the pokédex, the game will retrieve the last selected dex mode from wLastDexMode and use that to retrieve a pointer from Pokedex_OrderMonsByMode.Jumptable.
 
{| class="wikitable"
! Game !! Applicable language !! wLastDexMode !! Pokedex_OrderMonsByMode.Jumptable
|-
! rowspan="7" | Gold & Silver
| English || rowspan="5" | $D67E || $10:4BF0
|-
| French || $10:4BF8
|-
| German || $10:4BEA
|-
| Italian || $10:4C01
|-
| Spanish || $10:4BF2
|-
| Japanese || $D671 || $10:4ABC
|-
| Korean || $D731 || $10:4AF1
|-
! rowspan="6" | Crystal
| English || rowspan="5" | $01:D959 || $10:4BF0
|-
| French || $10:4BF8
|-
| German || $10:4BE9
|-
| Italian || $10:4C01
|-
| Spanish|| $10:4BF4
|-
| Japanese || $01:D94C || $10:4ABC
|}
 
==Accessing glitch Pokédex sortings==
1,514

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.