From d448823ffb540cb462548552efe4b5650e66de95 Mon Sep 17 00:00:00 2001 From: slipstream/RoL Date: Mon, 20 Feb 2017 18:29:22 +0000 Subject: Add support for almost all Gen III games MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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! --- gba/source/call_into_middle_of_titlescreen_func.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gba/source/call_into_middle_of_titlescreen_func.s (limited to 'gba/source/call_into_middle_of_titlescreen_func.s') 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 @@ + .text + .code 16 + + .global call_into_middle_of_titlescreen_func + .thumb_func +call_into_middle_of_titlescreen_func: + push {lr} + push {r4-r5} + @ use r4 (which already got saved to the stack) as scratch space to reserve a variable amount of stack space + mov r4,sp + sub r4,r4,r1 + mov sp,r4 + bx r0 \ No newline at end of file -- cgit 1.4.1