Guides:Coin Case ACE: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
mNo edit summary
Line 93: Line 93:
Use the following link to continue to the next guide: [[User:TimoVM/Mail_Writer_GS_(EN)|Mail writer GS]]
Use the following link to continue to the next guide: [[User:TimoVM/Mail_Writer_GS_(EN)|Mail writer GS]]


==Appendix: in-depth explanation of the setup==
=Appendix: in-depth explanation of the setup=


===Effect of the Coin Case===
==Effect of the Coin Case==


The effects of the Coin Case are described in more detail on the following [http://Coin%20Case%20glitches#cause wiki page]. Relevant to this setup is that the setup will redirect execution to address $FA98 (echo ram copy of $DA98), which is in the middle of party pokémon #3's stat experience data. During this redirection, the stack pointer gets incremented once and an address gets popped from the stack. The global effect is that the stack pointer is decremented once compared to when the Coin Case was used.
The effects of the Coin Case are described in more detail on the following [http://Coin%20Case%20glitches#cause wiki page]. Relevant to this setup is that the setup will redirect execution to address $FA98 (echo ram copy of $DA98), which is in the middle of party pokémon #3's stat experience data. During this redirection, the stack pointer gets incremented once and an address gets popped from the stack. The global effect is that the stack pointer is decremented once compared to when the Coin Case was used.


===Effect of party pokémon #3===
==Effect of party pokémon #3==


Defeating the provided list of pokémon will result in the following values at the following addresses, assuming the pokémon is in party slot #3:
Defeating the provided list of pokémon will result in the following values at the following addresses, assuming the pokémon is in party slot #3:
Line 118: Line 118:
Executing Coin Case at the location described in the setup will cause execution to jump to $DA98. It will then harmlessly slide through the sub a, h and nop instructions, after which execution will jump to $CF00, which is in the middle of the last buffered mail.
Executing Coin Case at the location described in the setup will cause execution to jump to $DA98. It will then harmlessly slide through the sub a, h and nop instructions, after which execution will jump to $CF00, which is in the middle of the last buffered mail.


===Effect of the mail===
==Effect of the mail==


The last read mail is buffered from $CEED onward. Converting the characters from the mail to assembly results in the following:
The last read mail is buffered from $CEED onward. Converting the characters from the mail to assembly results in the following:
Line 153: Line 153:
</pre>
</pre>


===Effect of the box name===
==Effect of the box name==


Box name data starts from $D8BF onward. Converting the provided mail code to assembly results in the following:
Box name data starts from $D8BF onward. Converting the provided mail code to assembly results in the following:
Line 163: Line 163:
</pre>
</pre>


==Plain text transcripts of codes==
=Plain text transcripts of codes=


* Mail
* Mail