Site cover image

🐾flag3

RAM Writer in Pokémon Emerald (JP)

This is a translation of the original article:

📄Arrow icon of a page linkポケットモンスター エメラルド バイナリエディタ

It was entirely processed by Claude Opus 5.5 in Claude Code with the Notion MCP.

The RAM Writer is a tool that uses arbitrary code execution to freely read and write the game's memory. This article explains how to install a RAM Writer in the Japanese version of Pokémon Emerald.

Image in a image block

RAM Writer Installation Procedure

Environment

This guide only works with the Japanese version of Pokémon Emerald. It does not work with any non-Japanese version.

Preparation

  • A Pomeg Berry (ザロクのみ)
    • Can be obtained around the Berry Master's house on Route 123.

Step 1: Prepare the Material Pokémon

The easiest way to obtain a material Pokémon is to use the Seedot (タネボー) named セブン, obtainable by trading a Ralts (ラルトス) in Rustboro City, with its EVs adjusted to 21 HP and 6 Attack. If セブン has not been trained yet, you can adjust it with the following steps. When defeating Pokémon, make sure セブン participates in the battle.

  1. Use 2 HP Ups.
  2. Defeat 1 Wurmple (ケムッソ).
  3. Defeat 6 Poochyena (ポチエナ).

Be careful not to gain EVs from Pokérus or other battles. Do not feed セブン any Pokéblocks (ポロック), and do not use a Pomeg Berry (ザロクのみ) on it.

Preparing the Material with RNG Manipulation

Instead of セブン, you can also use a normal wild Pokémon with a personality value (PID) that satisfies the following conditions.

(PID & 0x40000000) == 0
PID mod 24 is one of 0, 1, 2, 3, 6, 7, 12, 13

Bit 30 being 0 means that the first digit of the 8-digit hexadecimal PID is one of 0, 1, 2, 3, 8, 9, A, or B. This cannot be determined from the nature alone, so check the PID with an RNG tool or similar.

After catching it, set its HP EVs to 21 and its Attack EVs to 6. Defense, Sp. Atk, and Sp. Def EVs are arbitrary. However, be careful of the total EV limit.

If only bit 30 of the PID changes from 0 to 1 and no other data changes, the checksum matches when an even number (0, 2, or 4) of the items in the following table apply. This assumes a Pokémon with a normal held item, moves, and experience, and with the Egg flag and the relevant bits of the unused area set to 0.

ItemCounted when (value just before corruption)
Speed EVs64–127 or 192–255
Beauty (うつくしさ)64–127 or 192–255
Sheen (けづや)64–127 or 192–255
Current PP of the 4th move64–127 or 192–255
Ball caught inNest (ネスト), Repeat (リピート), Timer (タイマー), Luxury (ゴージャス), or Premier (プレミア)

For example, if you catch it in a Poké Ball (モンスターボール), do not feed it Pokéblocks (ポロック), keep its Speed EVs at 0–63 or 128–191, and keep the current PP of its 4th move at 0–63, then 0 items apply. If it knows 3 or fewer moves, the current PP of the 4th move is normally 0. Under the same conditions with a Premier Ball (プレミアボール), setting the Speed EVs to 64–127 or 192–255 makes 2 items apply.

Pokémon that have been fed Pokéblocks (ポロック) can also be judged with the conditions in the table. Whether it has a normal held item does not affect this checksum condition.

The original Smart (かしこさ) value is treated as the remaining hatch counter. For a wild Pokémon that has not been fed Pokéblocks (ポロック), it is 0, so the Egg will hatch at the next hatch check. Do not add the resulting Egg to your party until you have set the box names.

Step 2: Obtain the Glitch Pokémon

The following steps use one material Pokémon.

Preparing Your Party and Boxes

Empty Boxes 1, 2, and 12 through 14, and make your party the following 3 Pokémon. The order does not matter, but the 3rd Pokémon must be able to battle.

  • A Pokémon whose max HP decreases when a Pomeg Berry (ザロクのみ) is used on it
    • To check whether its max HP decreases, save beforehand, use a Pomeg Berry (ザロクのみ), check the result, and then reset.
  • A fainted Pokémon
  • Any Pokémon (the material Pokémon is fine)

Adjust the current HP of the Pokémon you will use the Pomeg Berry (ザロクのみ) on to 1. One way to do this is to walk around while it is poisoned and use an Antidote (どくけし) once its HP reaches 1. Do not restore its HP after adjusting it.

It is recommended to save before starting the battle so that you can retry if something goes wrong.

Battle and Party Arrangement
  1. In a battle with a wild Pokémon, send out the 3rd Pokémon in your party and run away without defeating the opponent. If the 3rd Pokémon faints, start over.
  2. Open the PC and place the material Pokémon in the 24th slot of Box 2.
  3. Deposit every Pokémon except the one for the Pomeg Berry (ザロクのみ) and the fainted one into Boxes 3 through 11, leaving 2 Pokémon in your party. Do not withdraw any other Pokémon.
Image in a image block

Make sure Box 1 is empty and Box 2 contains only the material Pokémon. Do not fight any other battle from here until the battle in "Pomeg Glitch".

Pomeg Glitch
  1. Close the PC and use the Pomeg Berry (ザロクのみ) on the Pokémon with 1 HP. It will either faint or have an abnormally large HP value. If the HP becomes abnormal, use a Potion (キズぐすり) to bring it to 0 HP. If the HP stays at 1, reset and start over from your save.
  2. With every Pokémon in your party at 0 HP, start a battle with a wild Pokémon. A Pokémon that looks like "?" appears.
  3. Open the SUMMARY (つよさをみる) of the 2nd Pokémon from "POKéMON". Press B to go back, then press B again to close the selection menu.
  4. With the cursor on the 2nd Pokémon, press Up 3 times (1st Pokémon → CANCEL → out of range). Press it one at a time instead of holding it.
  5. Press B to return to the battle screen and run away. You may be treated as having blacked out and be sent back to a Pokémon Center.
Checking for Success

Check the 24th slot of Box 2. If you prepared the material Pokémon as in Step 1, the signs of success are as follows:

  • It has become an "Egg" (タマゴ), not a "Bad Egg" (ダメタマゴ).
  • It is in a Nest Ball (ネストボール).
  • Its description says that it will hatch soon.
Image in a image block
Image in a image block

The success rate of this method is 1/32 (about 3.1%).

If it becomes a Bad Egg, the material Pokémon is broken, so reset without saving and start over from your save. If nothing changed, every Pokémon in your party is still at 0 HP, so you can repeat from step 2 of "Pomeg Glitch".

It is recommended to save once you succeed. Even if you make a mistake when entering the box names, you can retry from the state with the Egg. Leave the Egg in the box and proceed to Step 3.

Step 3: Obtain the Glitch Pokémon for Arbitrary Code Execution

This code generates 085F. If you already have 085F, you can skip this step.

Empty the 19th slot of Box 10, the bottom row of Box 11, and Boxes 12 through 14.

Set the names of Boxes 1 through 8 as follows, then hatch the 0615 Egg. You do not need to change the names of Boxes 9 through 14.

⚠️
For the similar-looking 「へ・べ・ぺ/ヘ・ベ・ペ」 and 「I/l」, only the katakana 「ヘ・ベ・ペ」 and the uppercase 「I」 (I) are annotated. If there is no annotation, enter the hiragana 「へ・べ・ぺ」 or the lowercase 「l」 (L).
Box 1: [さたゼnいみッm]
Box 2: [みめnいみッmち]
Box 3: [ぁmルば4めヂあ]
Box 4: [アグはくぐ l]
Box 5: [いみNミュみ あ]
Box 6: [アそぃギゥ l]
Box 7: [くェあぶみぃ び]
Box 8: [ Wリさく]

After you return to the Pokémon Center you last used, withdraw the 085F generated in the 19th slot of Box 10 into your party.

Step 4: Create the Ursaring for Transfer

Empty the 16th through 19th slots of Box 1, and set the names of Boxes 1 through 14 as follows.

Box 1:  [ォめンばつい『は]
Box 2:  [アこぅほょ l]
Box 3:  [せもっめコづグね]
Box 4:  [アCTへGけl]
Box 5:  [うぽべはゆリあゃ]
Box 6:  [をさV9をうW]
Box 7:  [CTぃGCTるG]
Box 8:  [アざTざGこl]
Box 9:  [ l99キっうぅ]
Box 10: [アアアオエあぅ]
Box 11: [WsっるあW]
Box 12: [アミBィCzs]
Box 13: [zs  ぺるVビ]
Box 14: [が]

Close the PC and open the SUMMARY (つよさをみる) of the 085F in your party. Once the display settles, close it. An Ursaring is generated in the 16th slot of Box 1.

Image in a image block

From now on, keep Boxes 12 through 14 empty. Do not change the position, nickname, or held item of the Ursaring or of the 3 Pokémon generated in Step 5, and do not open SUMMARY (つよさをみる).

Step 5: Simplified RAM Writer Setup

Set the names of Boxes 1 through 4 as follows, and do not change them until all 3 transfers are finished.

Box 1:  [ァらぜいっむは3]
Box 2:  [アoひぴざ l]
Box 3:  [めリあゃ みぼづ]
Box 4:  [アボねつはポば]

Set Boxes 5 through 14 starting from the 1st set, and perform the same operation as in Step 4 each time you enter a set.

Set 1: Transfer to the 17th Slot of Box 1
Box 5:  [あF♂あlづゥ ]
Box 6:  [ ぇ」お  よゅ]
Box 7:  [ぴ9oゃァばチl]
Box 8:  [ゃぶぅう!ス l]
Box 9:  [ねぶOねきもぁぴ]
Box 10: [ァばカlうぎ む]
Box 11: [あミろぴゥゃェゃ]
Box 12: [あむァばぴlネざ]
Box 13: [ むァばぶl ら]
Box 14: [おkなぶ リ]

Perform the same operation as in Step 4. Once a Bulbasaur is generated in the 17th slot of Box 1, proceed to the 2nd set.

Set 2: Transfer to the 18th Slot of Box 1
Box 5:  [いいlィィう  ]
Box 6:  [ぞぐ き ゥづゅ]
Box 7:  [V9ぶほくぢぃW]
Box 8:  [えめあげべく l]
Box 9:  [アMよYあれせe]
Box 10: [と2ベシィぐあれ] (katakana ベ)
Box 11: [うh7スぞね7オ]
Box 12: [LsミねIけうろ] (uppercase I)
Box 13: [fXか Fsに ]
Box 14: [いぶあギあぅ]

Perform the same operation as in Step 4. Once a Bulbasaur is generated in the 18th slot of Box 1, proceed to the 3rd set.

Set 3: Transfer to the 19th Slot of Box 1
Box 5:  [ういlあ ぃあ ]
Box 6:  [えグおしWすぴC]
Box 7:  [ゃ9♀ゃあむァば]
Box 8:  [せl んこVかl]
Box 9:  [!にXsusゥァ]
Box 10: [ミゾCsァゥフふ]
Box 11: [ァばうlぇBFC]
Box 12: [ みいめあがDば]
Box 13: [みび♀ホのくのゴ]
Box 14: [ くワふいい]

Perform the same operation as in Step 4. The preparation is complete once a Spinda is generated in the 19th slot of Box 1.

Image in a image block

Step 6: Start the Simplified RAM Writer

Set the names of Boxes 1 through 14 as follows.

Box 1:  [ァらぜいは3oひ]
Box 2:  [アぴざねぼ l]
Box 3:  [にべにぶあぃくタ]
Box 4:  [アポばアアアアア]
Box 5:  [そべぶネしぼゾぢ]
Box 6:  [つWしぱねリいり]
Box 7:  [せWレぉレぉねリ]
Box 8:  [ りけWクげこタ]
Box 9:  [えべくネくぼィね]
Box 10: [グネくぼグねくび]
Box 11: [ミびFばxコ う]
Box 12: [Kキくくぎせ う]
Box 13: [タも うギ7うい]
Box 14: [ブゅ  おお  ]

Perform the same operation as in Step 4, then close the party screen and the START menu to start the simplified RAM Writer.

Simplified RAM Writer

Image in a image block

The 4 digits on the left are the input position, and the 2 digits on the right are its value.

🎮
Simplified RAM Writer Controls

B: Input position -01

A: Input position +01

↑: Value -01

↓: Value +01

←: Value -10

→: Value +10

START: Exit

SELECT: Execute code from input position 0000 (be careful not to press this until you have entered the program)

Step 7: RAM Writer Setup

Use the simplified RAM Writer to input the RAM Writer program. Once input is complete, you can start the RAM Writer by pressing the Select button. It is recommended to press the Start button to exit the simplified RAM Writer and save before starting the RAM Writer.

Input positionValue
0000F8
0001B5
00024B
0003A0
00044D
00054C
000600
0007F0
00081E
0009F8
000AFF
000B28
000C2D
000DD0
000E50
000F4D
001028
001172
001211
001321
00144A
00154C
001600
0017F0
001816
0019F8
001A45
001BA0
001C52
001DA2
001E04
001F23
002000
0021F0
002209
0023F8
002408
002530
00260C
002723
002800
0029F0
002A05
002BF8
002C02
002D20
002E00
002F06
003068
003171
003228
003360
003444
0035E0
003600
003721
003807
0039B5
003A28
003B7A
003C00
003D22
003E41
003F4C
004000
0041F0
004201
0043F8
004407
0045BD
004620
004747
004805
0049DF
004A3F
004B4C
004CFF
004DF7
004EFB
004FFF
00503E
00514B
00521B
005388
005419
005507
005609
0057D5
005828
00597A
005A41
005B4C
005CFF
005DF7
005EF3
005FFF
006000
006120
006240
00634C
0064FF
0065F7
0066EF
0067FF
006800
006920
006AF8
006BBD
006C6F
006D79
006EE8
006F79
007039
00711F
007201
0073D0
007428
007568
007679
00771C
007804
00792B
007A07
007BD8
007C00
007D2B
007E1C
007FD0
0080E9
008179
008228
008368
008401
008570
008699
008708
008840
008918
008A18
008BE0
008C20
008D2B
008E08
008FD8
009002
0091D0
009238
00931F
009403
0095D0
009601
0097E0
009878
00991E
009A00
009BD5
009C05
009D30
009E68
009F71
00A010
00A1E0
00A2C9
00A300
00A401
00A522
00A6CA
00A741
00A819
00A90A
00AA02
00ABD0
00AC12
00AD01
00AE02
00AF29
00B001
00B1D0
00B240
00B32B
00B400
00B5D1
00B652
00B742
00B880
00B918
00BA04
00BB2F
00BC01
00BDD0
00BE28
00BF60
00C000
00C178
00C2E8
00C371
00C424
00C549
00C68C
00C71C
00C824
00C94B
00CA22
00CB48
00CC86
00CD1C
00CE15
00CF22
00D001
00D180
00D204
00D383
00D443
00D582
00D640
00D730
00D801
00D93A
00DAF9
00DBD1
00DC14
00DD27
00DE2B
00DF68
00E0D8
00E11B
00E20B
00E330
00E46B
00E579
00E603
00E721
00E84B
00E940
00EA0B
00EB2F
00EC00
00EDD0
00EE06
00EF23
00F01C
00F124
00F200
00F3F0
00F40D
00F5F8
00F602
00F736
00F800
00F978
00FA0B
00FB2F
00FC00
00FDD1
00FEE8
00FF79
010007
01013B
010204
010324
010400
0105F0
010604
0107F8
01082A
010936
010A01
010B3F
010CE7
010DD1
010E9B
010FE7
011001
011100
0112E1
011340
011409
011507
011609
01170F
0118E2
011908
011A9A
011B42
011C00
011DD1
011E11
011F31
01200E
01214A
012251
012318
012401
012531
012631
012780
012802
012936
012A04
012B3C
012CF0
012DD5
012E70
012F47
013000
013102
013203
013311
013403
01350F
01368F
013700
013800
013904
013A05
013B00
013C51
013D32
013E00
013F08
014019
01413B
014200
014308
0144FD
01459A
014619
014708
0148E5
014905
014A00
014B08
014C90
014D23
014E00
014F03
015000
0151D6
015203
015302
015422
0155F8
015600
015706
015817
0159E2
015A00
015B00
015C9F
015DF0
015E00
015F00
016045
016134
016200
016308
016449
016522
016600
016708
0168A1
0169A2
016AA3
016BA4
016CA5
016DA6
016EA7
016FA8
0170A9
0171AA
0172BB
0173BC
0174BD
0175BE
0176BF
0177C0
0178FF
017900
017A00
017B00
017C00
017D00
017E00
017F00

RAM Writer

From now on, you can start the RAM Writer each time you start the simplified RAM Writer and press the Select button.

Image in a image block

The 8 digits on the left are the memory address, and the 2 digits on the right are its value. Select the 2 digits shown in red with Left and Right, and change them with Up, Down, L, and R.

🎮
RAM Writer Controls

←: Move the selection left

→: Move the selection right

↑: Selected 2 digits -01

↓: Selected 2 digits +01

L: Selected 2 digits -10

R: Selected 2 digits +10

A: Write the displayed value to the current address

B: Write the displayed value to the current address

SELECT: Write the value and advance the address by +01

START: Exit and return to the game

Starting the Full Version Directly

Change the names of both Box 10 and Box 14 to the following.

Box 10: [けネくぼグねくび]
Box 14: [ブゅ  ベゅ  ] (katakana ベ)

Perform the same operation as in Step 4, then close the party screen and the START menu to start the full version of the RAM Writer directly.

Advanced: Rewriting the Box Names with the Full Version

This method uses the full version to rewrite 3 bytes and change the box names to the ones for starting it directly.

Read the 4 bytes starting at 03005AF4 and reverse their order to get the start address of the box data.

For example, if 00 98 02 02 is displayed, the start address is 02029800. Add the values in the table below to the start address in hexadecimal to get the addresses to rewrite.

Part to rewriteValue to addBeforeAfter
1st character of Box 10000083958909
5th character of Box 14000083BD0599
6th character of Box 14000083BE0535

If the start address is 02029800, the addresses are as follows.

Part to rewriteCalculationAddress to rewrite
1st character of Box 1002029800 + 0000839502031B95
5th character of Box 1402029800 + 000083BD02031BBD
6th character of Box 1402029800 + 000083BE02031BBE

The start address changes when you open menus, enter or leave the PC, or restart the game, so read it again every time. Check that all 3 calculated addresses match the "Before" values, then write the "After" values one at a time with A or B. If they do not match, do not change anything.

Perform the same operation as in Step 4, then close the party screen and the START menu to start the full version of the RAM Writer directly.

References

For the arbitrary code execution procedure, the following are referenced.

For the RAM Writer, the following are referenced.