diff options
Diffstat (limited to 'agbx/source/priv/init.s')
-rw-r--r-- | agbx/source/priv/init.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/agbx/source/priv/init.s b/agbx/source/priv/init.s new file mode 100644 index 0000000..ec0b6df --- /dev/null +++ b/agbx/source/priv/init.s @@ -0,0 +1,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 |