diff options
author | slipstream/RoL <l33twax@yahoo.com> | 2017-02-20 18:29:22 +0000 |
---|---|---|
committer | slipstream/RoL <l33twax@yahoo.com> | 2017-02-20 18:29:22 +0000 |
commit | d448823ffb540cb462548552efe4b5650e66de95 (patch) | |
tree | 8938c01996d872f3b0e764786b20ebe46d97382a /gba/source/call_into_middle_of_titlescreen_func.s | |
parent | 272a6592bace32cc4b2c5432aa3fad4066f152c6 (diff) | |
download | gen3uploader-d448823ffb540cb462548552efe4b5650e66de95.tar.gz gen3uploader-d448823ffb540cb462548552efe4b5650e66de95.tar.bz2 gen3uploader-d448823ffb540cb462548552efe4b5650e66de95.zip |
Add support for almost all Gen III games
The only Gen III game unsupported should be Pokémon LeafGreen v1.1 (Japan); as it is undumped. A couple of bugs have also been fixed. The code has also been refactored a little; now payload code goes into `payload.c`. The codebase is also ready for a planned future change to include savedata structure definitions. This will be done when it's done -- PRs to help would be appreciated!
Diffstat (limited to 'gba/source/call_into_middle_of_titlescreen_func.s')
-rw-r--r-- | gba/source/call_into_middle_of_titlescreen_func.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gba/source/call_into_middle_of_titlescreen_func.s b/gba/source/call_into_middle_of_titlescreen_func.s new file mode 100644 index 0000000..7908f6b --- /dev/null +++ b/gba/source/call_into_middle_of_titlescreen_func.s | |||
@@ -0,0 +1,13 @@ | |||
1 | .text | ||
2 | .code 16 | ||
3 | |||
4 | .global call_into_middle_of_titlescreen_func | ||
5 | .thumb_func | ||
6 | call_into_middle_of_titlescreen_func: | ||
7 | push {lr} | ||
8 | push {r4-r5} | ||
9 | @ use r4 (which already got saved to the stack) as scratch space to reserve a variable amount of stack space | ||
10 | mov r4,sp | ||
11 | sub r4,r4,r1 | ||
12 | mov sp,r4 | ||
13 | bx r0 \ No newline at end of file | ||