User:Kazumarks/0x0611 Box Name Codes: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Porting my ACE codes page to the wiki)
 
No edit summary
 
Line 1: Line 1:
These codes are for USA/European versions of Emerald and can be executed with 0x0611 or a stable ACE Pokemon of your choice. These codes should only be used on console or mGBA 0.9.0+. These codes omit the exit code, and assume that the user knows what the rest of the box names should be filled with.
These codes are for USA/European versions of Emerald and can be executed with 0x0611 or a stable ACE Pokemon of your choice. These codes should only be used on console or mGBA 0.9.0+. These codes omit the exit code, and assume that the user knows what the rest of the box names should be filled with.




<span id="set-isspecies-flag-for-pokemon-on-box-10-slot-19"></span>
<span id="set-isspecies-flag-for-pokemon-on-box-10-slot-19"></span>
Line 149: Line 151:
Box 12: _ “ F w m _ _ _ [ “Fwm ]
Box 12: _ “ F w m _ _ _ [ “Fwm ]
Box 13: _ _ _ v * * [ v**]</syntaxhighlight>
Box 13: _ _ _ v * * [ v**]</syntaxhighlight>

== Create EGG from Nothing ==
<syntaxhighlight lang="text">
@@ title = "Create pokemon from nothing (without exit code bootstrap)"
@@ author = "E-Sh4rk"
@@ exit = "Bootstrapped"

species = 0x ; Please set the species you want (it should not be 0)
inaccurate_emu = 0 ; Set to 1 if you are using an emulator < mgba 0.9

; The Box 10 Slot 19 must be empty. An egg will appear there after execution of the code.

@@

sbc r11, r15, #0x2940 ; r11 = &Box10Slot19 + 9

mov r12, {(species & 0xFFFF) + 0x4000} ?
strh r12, [r11, {28-(inaccurate_emu?7:9)}]!

; sbc r12, r12, 0x3FFF ?
sbc r12, r12, #0x3b80
sbc r12, r12, #0x3b8
sbc r12, r12, #0xc5 ; r12 = species & 0xFFFF
strh r12, [r11, 4]!

; mov r12, 0x4000 ?
movs r12, #0x35c0
adc r12, r12, #0xa40 ; r12 = 0x4000
strh r12, [r11, 42]!
</syntaxhighlight>