about summary refs log tree commit diff stats
path: root/gba/source/call_into_middle_of_titlescreen_func.s
diff options
context:
space:
mode:
Diffstat (limited to 'gba/source/call_into_middle_of_titlescreen_func.s')
-rw-r--r--gba/source/call_into_middle_of_titlescreen_func.s13
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
6call_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