IN: BHL = pointer to null-terminated filename (B = 0, local) CDE = pointer to null-terminated arguments string, optional (C = 0, local always and DE < $2000 in OS stack) A = execution mode (A0=0: execute, A0=1:debug) OUT: Fc = 0, success Fc = 1, failure and A = error Registers affected after return: AFBCDEHL depends on ELF execution IXIY changed by the call |
(SP+00) Ret to caller managed internally by DC_Rte
(SP+02) Argc number of arguments including program (file) name
(SP+04) *Argv[0] pointer to first argument string, the program name (null-terminated)
(SP+06) *Argv[1] pointer to second argument string (first argument for program) (null-terminated)
...
DC_Elf, ELF interface
DC_Rte, return from ELF