diff options
Diffstat (limited to '')
| -rw-r--r-- | include/gbos.inc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/gbos.inc b/include/gbos.inc index 6aaaf73..30c3a50 100644 --- a/include/gbos.inc +++ b/include/gbos.inc @@ -69,8 +69,11 @@ DEF PROC_PARENT RB 1 DEF PROC_EXIT RB 1 ; exit code (valid when PS_ZOMBIE) DEF PROC_STDIN RB 1 ; $FF = console, else an open-file fd DEF PROC_STDOUT RB 1 ; $FF = console, else an open-file fd +DEF PROC_PROG RB 1 ; program id currently running ($FF = none), for ps DEF PROC_SIZE RB 0 +DEF KILL_CODE EQU 137 ; exit status of a killed process (128 + SIGKILL) + DEF STD_CONSOLE EQU $FF ; ----------------------------------------------------------------------------- @@ -96,7 +99,10 @@ DEF SYS_PUTC EQU 16 ; write a byte to stdout (E=byte) DEF SYS_SETIN EQU 17 ; set current stdin fd (B=fd, $FF=console) DEF SYS_SETOUT EQU 18 ; set current stdout fd (B=fd, $FF=console) DEF SYS_LOOKUP EQU 19 ; program id for a command name (DE=name -> A=id/$FF) -DEF SYS_MAX EQU 20 +DEF SYS_PS EQU 20 ; process table entry (B=slot, DE=buf3 -> A=1/0) +DEF SYS_PROGNAME EQU 21 ; program id -> name (B=id, DE=namebuf) +DEF SYS_MAX EQU 22 +; SYS_KILL (9) is now implemented (B=pid -> A=0/$FF; pid 1 is immortal) ; (SYS_OPEN=4 / SYS_CLOSE=5 are now implemented by the filesystem) ; ----------------------------------------------------------------------------- @@ -138,5 +144,8 @@ DEF PROG_ARGS EQU 12 DEF PROG_LS EQU 13 DEF PROG_SAVE EQU 14 DEF PROG_RM EQU 15 +DEF PROG_PS EQU 16 +DEF PROG_KILL EQU 17 +DEF PROG_SPIN EQU 18 ENDC |
