summaryrefslogblamecommitdiff
path: root/agbx/source/priv/init.s
blob: b9f1f45535d9663cdab71bf852469cbeaf7b9fc8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                                              


            
                    
                    

                    


                                                                                        
@ 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:
	@ Call main:
	bl agbx_main

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

.endfunc