lol its in c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
380 B

include "sdk/hardware.inc"
SECTION "Header", ROM0[$100]
di
jp startRom
ds $150 - @
SECTION "Init", ROMX, BANK[1]
startRom:
ld sp, $E000
call globalsInit ; init C globals
call _main
db $DD ; lock up if main returns ($DD is an invalid opcode)
SECTION FRAGMENT "GSINIT", ROMX, BANK[1]
globalsInit:
; This will be the first fragment of GSINIT.