This is a translation of the original article:
📄 ポケットモンスター ファイアレッド・リーフグリーン 殿堂入り(任意コード実行)
It was entirely processed by Claude Opus 4.7 in Claude Code with the Notion MCP. The Bonus and Code sections were updated by Claude Opus 5.5 on November 8, 2026.
This article explains how to reach the Hall of Fame in Pokémon FireRed and LeafGreen using arbitrary code execution. It can be used in the Any% No Save Corruption speedrun category, where the goal is to reach the Hall of Fame as quickly as possible with glitches allowed (but resets during saving disallowed).
Hall of Fame Procedure
Environment
This guide only works with the Japanese versions of Pokémon FireRed and LeafGreen. It does not work with any non-Japanese version. Both the GBA versions and the Switch versions are supported.
Version Differences
The GBA versions of Pokémon FireRed and LeafGreen each have a v1.0 and a v1.1. You can determine which version you have by examining the numbers engraved on the cartridge's PCB.
- If the trailing digits are 20, it is v1.0.
- If the trailing digits are 30, it is v1.1.
Preparation
- A Pokémon that knows Knock Off
- Farfetch'd (じんすけ), obtainable via in-game trade, learns Knock Off at Lv. 21.
- A Pokémon that knows Recycle
- Mr. Mime (バリヤン), obtainable via in-game trade, learns Recycle at Lv. 33.
- A consumable item (e.g., a Berry)
- An Oran Berry, which activates at 50% HP or below, is ideal.
- Oran Berries can be obtained on Route 25.
- An Oran Berry, which activates at 50% HP or below, is ideal.
- Mail
- Can be purchased at the Celadon Department Store for 50 yen.
- Prepare at least 7 pieces.
Step 1: Prepare the Material Pokémon
The easiest way to obtain a material Pokémon is to use the Nidoran♂ (ニドくん) obtainable via the in-game trade in LeafGreen, with its experience adjusted to 466, 488, or 493. If any of the following apply to you, please refer to Detelony's explanation video or final's article.
- You are using FireRed.
- You already have ニドくん but it is difficult to adjust its experience to 466, 488, or 493.
- ニドくん has already evolved.
Note that since ニドくん obtained via the in-game trade has a personality value (PID) of 0x4C970B9E and a Trainer ID of 63184, it can be used as a material Pokémon by adjusting its experience to a different value.
Step 2: Mail Glitch
Prepare the following 3 Pokémon in your party, with the first 2 slots being Pokémon 1 and 2 below.
- Any Pokémon holding a consumable item.
- A Pokémon that knows Knock Off.
- A Pokémon that knows Recycle and is holding Mail (the message can be anything).
Start a Double Battle. It is recommended to save before starting. In the Double Battle, perform the following steps:
- Have the Pokémon use (consume) the consumable item.
- Once the item has been consumed, switch that Pokémon out for the Pokémon that knows Recycle and is holding Mail.
- Use Knock Off on the Recycle-user holding Mail to knock off its Mail.
- Use Recycle to recover the consumed item.
- End the battle.
Check your party. If the Pokémon that knows Recycle is no longer holding Mail, the Mail Glitch succeeded. Give the Recycle-user Mail again.
Step 3: Obtain the Glitch Pokémon
Place the material Pokémon obtained in Step 1 as the 1st Pokémon in Box 3, and fill your party with 6 Pokémon.
Give Mail to all 6 Pokémon (the message can be anything). When you attempt to give Mail to the 6th Pokémon, a Mail screen with ??? entered will be displayed.
If you are using LeafGreen and the material Pokémon is ニドくん, set the 3rd and 5th words of the Mail as shown below. The _____ entries in the table mean to delete the ????? word.
| Experience | 3rd word | 5th word |
|---|---|---|
| 466 | ポケモンゲット | _____ |
| 488 | レッド | _____ |
| 493 | レベル | _____ |
If you are using FireRed or a different material Pokémon, please use Detelony's FRLG ACE Glitch Pokémon Generation Calculator, or final's Species Word Finder and Checksum Adjustment Calculator.
Step 4: Enter the Hall of Fame
Do not deposit any Pokémon in Boxes 12 through 14, and keep your party at 4 or fewer Pokémon. If your party has 5 or more Pokémon, the game will freeze partway through the Hall of Fame sequence.
Set the box names according to the version of the game you are using and the species ID of the Glitch Pokémon. Click the triangle below to display the table, check the type corresponding to your Glitch Pokémon's species ID, and set the box names for that type. If you used ニドくん with experience 466, 488, or 493 as the Glitch Pokémon, use ARM-2 type.
FireRed Species IDs
| Species ID | Type |
|---|---|
| 0x03F8 | ARM-2 |
| 0x060C | ARM-2 |
| 0x15BC | ARM-0 |
| 0x1626 | ARM-0 |
| 0x4312 | Thumb |
| 0x4317 | Thumb |
| 0x4D12 | ARM-0 |
| 0x7912 | Thumb |
| 0x89FA | Thumb |
| 0xA253 | Thumb |
| 0xB2A9 | ARM-0 |
| 0xC7FE | Thumb |
| 0xC950 | ARM-0 |
| 0xCAA2 | ARM-2 |
| 0xCD48 | Thumb |
| 0xCF8B | Thumb |
| 0xD624 | Thumb |
| 0xDD37 | Thumb |
| 0xE472 | ARM-0 |
| 0xE69D | ARM-0 |
| 0xFF3B | ARM-2 |
| 0xFF41 | ARM-2 |
| 0xFF61 | ARM-2 |
| 0xFF6B | Thumb |
| 0xFF78 | ARM-0 |
| 0xFF79 | Thumb |
| 0xFF7B | Thumb |
| 0xFF7E | Thumb |
| 0xFF81 | Thumb |
| 0xFF83 | Thumb |
| 0xFF86 | Thumb |
| 0xFF8B | Thumb |
| 0xFF8E | Thumb |
| 0xFF96 | Thumb |
| 0xFF99 | Thumb |
| 0xFF9B | Thumb |
| 0xFF9E | Thumb |
| 0xFFA1 | Thumb |
| 0xFFA3 | Thumb |
| 0xFFAB | Thumb |
| 0xFFAE | Thumb |
| 0xFFB1 | Thumb |
| 0xFFB3 | Thumb |
| 0xFFB6 | Thumb |
| 0xFFB9 | Thumb |
| 0xFFBB | Thumb |
| 0xFFC3 | Thumb |
| 0xFFC6 | Thumb |
| 0xFFC9 | Thumb |
| 0xFFCE | Thumb |
| 0xFFD3 | Thumb |
| 0xFFF8 | ARM-0 |
| 0xFFF9 | Thumb |
LeafGreen Species IDs
| Species ID | Type |
|---|---|
| 0x03F8 | ARM-2 |
| 0x060C | ARM-2 |
| 0x15BC | ARM-0 |
| 0x1626 | ARM-0 |
| 0x3D88 | ARM-2 |
| 0x4D1B | Thumb |
| 0x9151 | Thumb |
| 0xBCB2 | Thumb |
| 0xC290 | Thumb |
| 0xC6AA | ARM-2 |
| 0xCFAD | ARM-2 |
| 0xD45D | ARM-2 |
| 0xD628 | Thumb |
| 0xEA20 | ARM-0 |
| 0xEB51 | Thumb |
| 0xFBED | ARM-0 |
| 0xFF11 | ARM-2 |
| 0xFF37 | ARM-2 |
| 0xFF41 | ARM-2 |
| 0xFF57 | ARM-2 |
| 0xFF5C | ARM-2 |
| 0xFF61 | ARM-2 |
| 0xFF6C | Thumb |
| 0xFF79 | Thumb |
| 0xFF7C | Thumb |
| 0xFF7F | Thumb |
| 0xFF81 | Thumb |
| 0xFF84 | Thumb |
| 0xFF87 | Thumb |
| 0xFF8C | Thumb |
| 0xFF8F | Thumb |
| 0xFF97 | Thumb |
| 0xFF99 | Thumb |
| 0xFF9C | Thumb |
| 0xFF9F | Thumb |
| 0xFFA1 | Thumb |
| 0xFFA4 | Thumb |
| 0xFFAC | Thumb |
| 0xFFAF | Thumb |
| 0xFFB1 | Thumb |
| 0xFFB4 | Thumb |
| 0xFFB7 | Thumb |
| 0xFFB9 | Thumb |
| 0xFFBC | Thumb |
| 0xFFC4 | Thumb |
| 0xFFC7 | Thumb |
| 0xFFC9 | Thumb |
| 0xFFCE | ARM-0 |
| 0xFFD1 | Thumb |
| 0xFFF9 | Thumb |
Depending on the type, use one of the following:
ARM-0
Box 1: [ア]
Box 2: [ まqた]
Box 3: [ぁm〇〇しく] ARM-2
Box 1: [ア]
Box 2: [ まqた]
Box 3: [ぁmしく〇〇] Thumb
Box 1: [ ぶ び〇〇しく] Replace 〇〇 with the following value based on your version:
| Version | 〇〇 |
|---|---|
| GBA FireRed v1.0 | 『」 |
| GBA FireRed v1.1 | す♂ |
| Switch FireRed | 『y |
| GBA LeafGreen v1.0 | ュ」 |
| GBA LeafGreen v1.1 | m」 |
| Switch LeafGreen | ュy |
Note that for the ARM-0 and ARM-2 types on the Switch version, the default Box 1 name ボックス1 is also acceptable.
With no Pokémon deposited in Boxes 12 through 14, open the "Move Pokémon" menu, pick up any Pokémon, move it onto the Glitch Pokémon, and swap them. This will trigger the Hall of Fame.
Note that the Glitch Pokémon will disappear after the Hall of Fame sequence.
Bonus: Display THE END Directly
You can also use the Glitch Pokémon prepared in Step 3 to display THE END screen directly. Entering the Hall of Fame in Step 4 makes the Glitch Pokémon disappear, so do this before entering the Hall of Fame.
Do not deposit any Pokémon in Boxes 12 through 14.
Set the box names according to the version of the game you are using and the species ID of the Glitch Pokémon. Check the type in the species ID tables in Step 4. If you used ニドくん with experience 466, 488, or 493 as the Glitch Pokémon, use ARM-2 type.
Depending on the type, use one of the following. In all six versions, the ARM-0 and ARM-2 types use Boxes 1 through 4, and the Thumb type uses Boxes 1 through 3. Only for the ARM-0 and ARM-2 types on GBA LeafGreen v1.1, set Boxes 3 and 4 to the dedicated names described below.
ARM-0
Box 1: [く ぽnびへャn]
Box 2: [あゥqあ ゼnた]
Box 3: [ぁmあぶぃチ び]
Box 4: [ア〇〇そく] ARM-2
Box 1: [こ ぽnびへャn]
Box 2: [あゥqあ ぽnた]
Box 3: [ぁmあぶぃチ び]
Box 4: [ア〇〇そく] Thumb
Box 1: [ルば ぼ〇〇そく]
Box 2: [アけぅゾネ l]
Box 3: [てげぇチあタたび] Replace 〇〇 with the characters in the table below based on your version and type.
| Version | 〇〇 for ARM-0 and ARM-2 | 〇〇 for Thumb |
|---|---|---|
| GBA FireRed v1.0 | eカ | xカ |
| GBA FireRed v1.1 | へキ | ぃキ |
| Switch FireRed | ルゼ | ザゼ |
| GBA LeafGreen v1.0 | 『カ | Jカ |
| GBA LeafGreen v1.1 | Use the dedicated names below | くキ |
| Switch LeafGreen | アゼ | トゼ |
If you use the ARM-0 or ARM-2 type on GBA LeafGreen v1.1, keep Boxes 1 and 2 as they are and set Boxes 3 and 4 to the following names. This change is not needed for the Thumb type.
Box 3: [ぁmあぶでぃぃチ]
Box 4: [め『カそく び] With no Pokémon deposited in Boxes 12 through 14, open the "Move Pokémon" menu, pick up any normal Pokémon, move it onto the Glitch Pokémon, and swap them. This will display THE END.
Note that this method only displays THE END screen. It does not update the Hall of Fame record or the game-clear state. The credits do not play, and you need to reset after the screen is displayed.
Code
Program That Runs the Hall of Fame
GBA FireRed v1.0 is used as an example here. The program in the box names hands control to the game's Hall of Fame start function at 0x080CB4B0. Because this function is written in Thumb instructions, the value used for the branch is 0x080CB4B1, with the lowest bit set to 1.
ARM-0
The following is the part of the box names that branches to the function. In each code example, the position of the first LDR is 0000, and the hexadecimal offset from there is shown on the left.
0000: e51f0000 ldr r0, [pc, #-0] ; load the value at offset 0008 into r0
0004: e12fff10 bx r0 ; branch to 080CB4B0 in Thumb
0008: 080cb4b1 .word 0x080cb4b1 ; data for the branch target When an ARM instruction reads PC, it points 8 bytes ahead of the executing instruction. In this example, the 4 bytes at offset 0x0008 are read, and r0 receives 0x080CB4B1. The following BX uses the lowest bit as the Thumb flag and continues execution from 0x080CB4B0, where the actual instructions are.
Binary
00 00 1F E5 10 FF 2F E1 B1 B4 0C 08 ARM-2
This uses the same LDR and BX as the ARM-0 type, but the constant at the end has its 2-byte halves swapped. The following shows the layout in memory.
0000: e51f0000 ldr r0, [pc, #-0] ; in ARM-2, reads with offset 000A specified
0004: e12fff10 bx r0 ; branch to 080CB4B0 in Thumb
0008: b4b1080c .word 0xb4b1080c ; constant adjusted for the 2-byte offset In the ARM-2 type, a 2-byte offset remains in the PC at runtime, so the read address specified by LDR also shifts from 0x0008 to 0x000A. This 32-bit read returns the value at the 4-byte boundary rotated by 16 bits. By setting the constant to 0xB4B1080C in advance, r0 receives 0x080CB4B1, the same as in the ARM-0 type.
This is why Step 4 swaps 〇〇しく in Box 3 to しく〇〇.
Binary
00 00 1F E5 10 FF 2F E1 0C 08 B1 B4 Thumb
0000: 4800 ldr r0, [pc, #0] ; load the value at offset 0004 into r0
0002: 4700 bx r0 ; branch to 080CB4B0 in Thumb
0004: 080cb4b1 .word 0x080cb4b1 ; data for the branch target This Thumb LDR uses the position 4 bytes after the instruction, aligned to a 4-byte boundary, as its base. In this example, it reads the same function pointer from offset 0x0004. Although execution is already in Thumb, the BX target still needs the lowest bit set to 1.
Binary
00 48 00 47 B1 B4 0C 08 In every type, only two instructions, LDR and BX, are executed here. The last 4 bytes are data representing the branch target and are not executed as instructions at that location. The ARM-0 and Thumb types place B1 B4 0C 08, and the ARM-2 type places 0C 08 B1 B4, with the 2-byte halves swapped.
Also, BX itself does not modify the return address in LR. The Hall of Fame start function returns 0 to the original caller after processing, and the rest of the Hall of Fame sequence proceeds through the registered callback2.
Program That Displays THE END
GBA FireRed v1.0 is again used as an example. The program calls the game's THE END drawing function at 0x080F56D8 in Thumb. Because the function pointer specifies Thumb, it is 0x080F56D9, with 1 added.
Let S be the start of Box 1's name. The left column of the code below is the hexadecimal offset from S. The actual RAM address depends on the position of the box storage area.
ARM-0
0000: e24f0008 sub r0, pc, #8 ; r0 = S (the ARM-0 PC is S+8)
0004: e2841d47 add r1, r4, #0x11c0 ; r1 = 0x0203A8BC
0008: e58101ff str r0, [r1, #511] ; sCreditsMgr = S
000c: e28f0001 add r0, pc, #1 ; r0 = S+0x15
0010: e12fff10 bx r0 ; Thumb instructions from S+0x14
0014: 4801 ldr r0, [pc, #4] ; r0 = 0x080F56D9
0016: 6130 str r0, [r6, #16] ; gMain.callback2 = r0
0018: 4700 bx r0 ; tail branch to the drawing function
001a: 51ff .hword 0x51ff ; terminator FF and 「ア」 for alignment, not executed
001c: 080f56d9 .word 0x080f56d9 ; pointer to the drawing function
0020: ffffffff .word 0xffffffff ; rest of the name This reuses r4=0x020396FC and r6=gMain-12 at the time of triggering. The 32-bit write to 0x0203A8BC+511=0x0203AABB goes to 0x0203AAB8, because the ARM7TDMI ignores the lowest 2 bits. This removes the need for a constant for the manager pointer and lets the terminator FF be used in the STR instruction.
S+1 is the 00 of the first instruction, and S+9 is the 01 of the STR instruction. The drawing function reads these 2 bytes as the progress stage and the image selection. After execution, S+1 changes to 03, so the box name in RAM also changes.
Binary
Each row is the 9 bytes of one box. FF is the name terminator, and the rest of a short name is also FF.
08 00 4F E2 47 1D 84 E2 FF
01 81 E5 01 00 8F E2 10 FF
2F E1 01 48 30 61 00 47 FF
51 D9 56 0F 08 FF FF FF FF ARM-2
This changes the following 2 instructions from the ARM-0 type. In the ARM-2 type, a 2-byte offset remains in the PC at runtime, so the instruction that computes S and the instruction that computes the Thumb switch target are corrected. Here, the left column shows the offset in memory.
0000: e24f000a sub r0, pc, #10 ; compute S from PC=S+10
000c: e24f0001 sub r0, pc, #1 ; compute S+0x15 from PC=S+0x16 In both types, the value passed to BX is S+0x15. The lowest bit 1 specifies Thumb, and the Thumb instructions actually run from S+0x14. The rest of the code and the drawing function constant are the same as in the ARM-0 type.
Binary
0A 00 4F E2 47 1D 84 E2 FF
01 81 E5 01 00 4F E2 10 FF
2F E1 01 48 30 61 00 47 FF
51 D9 56 0F 08 FF FF FF FF Thumb
0000: 4679 mov r1, pc ; r1 = S+4
0002: 4a00 ldr r2, [pc, #0] ; r2 = 0x080F56EC (function start+20)
0004: 080f56ec .word 0x080f56ec ; constant also executed as instructions
0008: 51ff str r7, [r7, r7] ; r7=0. Writes to the BIOS area have no effect
000a: 3109 adds r1, #9 ; r1 = S+0x0D
000c: 6890 ldr r0, [r2, #8] ; r0 = where sCreditsMgr is stored
000e: e000 b 0x12 ; this instruction's 00 doubles as the progress stage
0010: ffff .hword 0xffff ; terminator FF FF, not executed
0012: 3a13 subs r2, #19 ; r2 = 0x080F56D9
0014: 6132 str r2, [r6, #16] ; gMain.callback2 = r2
0016: 6001 str r1, [r0] ; sCreditsMgr = S+0x0D
0018: 4710 bx r2 ; tail branch to the drawing function
001a: ff .byte 0xff ; name terminator The start of the manager data is set to S+0x0D. The progress stage is the 00 of the branch instruction at S+0x0E, 1 byte after that, and the image selection is the 01 of the STR instruction at S+0x16, 9 bytes after. By the time the drawing function rewrites the progress stage, this branch instruction has already been executed.
The location of the manager pointer is stored as a constant 28 bytes after the function start, so the program reads function start+20 and refers to 8 bytes after it. Subtracting 19 then gives function start+1, which can be used as a Thumb function pointer. This layout is common to all six versions; only the constant at 0x04 differs by version.
In this example, the constant at 0x04 is also executed as the following 2 instructions.
0004: 56ec ldrsb r4, [r5, r3] ; the value read is not used for drawing
0006: 080f lsrs r7, r1, #32 ; r7 = 0 These 2 instructions preserve r1, r2, and r6. By omitting a branch over the constant and sharing the progress stage and image selection with required instructions, the code fits in 3 boxes.
Binary
79 46 00 4A EC 56 0F 08 FF
51 09 31 90 68 00 E0 FF FF
13 3A 32 61 01 60 10 47 FF Fitting the LG v1.1 ARM Types into 4 Boxes
The Thumb function pointer for LG v1.1 is 0x080F56F5, but F5 cannot be entered in a box name. Instead, 0x080F56B1 is placed and 68 is added. The first 20 bytes of each type stay as above, and the second half is as follows.
0014: 4801 ldr r0, [pc, #4] ; r0 = 0x080F56B1
0016: 3044 adds r0, #68 ; r0 = 0x080F56F5
0018: 6130 str r0, [r6, #16] ; gMain.callback2 = r0
001a: 22ff movs r2, #255 ; instruction containing the terminator FF
001c: 080f56b1 .word 0x080f56b1 ; constant, also executed as instructions here
0020: 4700 bx r0
0022: ffff .hword 0xffff When read as Thumb instructions, the 4 bytes at 0x1C become the following 2 instructions.
001c: 56b1 ldrsb r1, [r6, r2] ; read 1 byte in IWRAM
001e: 080f lsrs r7, r1, #32 ; r7 = 0 Acknowledgments
Thanks to Bonjiri for identifying the Hall of Fame function address for the Switch version.
References
In addition to the resources mentioned in Step 1, the following are referenced.