aboutsummaryrefslogtreecommitdiffstats
path: root/c/crt0.s
diff options
context:
space:
mode:
Diffstat (limited to 'c/crt0.s')
-rw-r--r--c/crt0.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/crt0.s b/c/crt0.s
index cde4b67..0d8371f 100644
--- a/c/crt0.s
+++ b/c/crt0.s
@@ -1,11 +1,11 @@
.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.
+ ;; gbos C entry. exec() maps our ROM bank and jumps here ($4000).
+ ;; Call main(), then exit(0). (Args are fetched on demand via getargs().)
.area _CODE
_start::
call _main
ld b, #0
- ld c, #0 ; SYS_EXIT
+ ld c, #0 ; SYS_EXIT
rst #0x30
1$: jr 1$