summaryrefslogtreecommitdiff
path: root/agbx/source/priv/init.s
blob: ec0b6df1e7a00b79f03f1973ff9511a1695a4006 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@ Copyright 2022 Gabriel Jensen.
@ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
@ If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

.syntax unified

.cpu arm7tdmi
.thumb

.extern agbx_done
.extern agbx_main

.globl __agbx_init

.func

.thumb_func

__agbx_init:
	bl agbx_main
	bl agbx_done @ The return value is already in r0, so there's no need to move it.

.endfunc