; ============================================================================= ; tasks.asm - init just becomes the shell. ; init (pid 1) exec()s PROG_SH; the shell then drives fork+exec+wait to run ; commands typed on the serial console. As pid 1 it is also the orphan reaper. ; ============================================================================= INCLUDE "include/gbos.inc" SECTION "tasks", ROM0 TaskInit:: ld b, PROG_SH ld c, SYS_EXEC rst $30 ; never returns