.module crt0 .globl _main ;; gbos C entry. exec() maps our ROM bank and jumps to the start of _CODE ;; (linked at 0x4000). Call main(), then exit(0). exec() already set SP. .area _CODE _start:: call _main ld b, #0 ld c, #0 ; SYS_EXIT rst #0x30 1$: jr 1$