WonderWitch/IL/ProcIL

From WSdev Wiki
Jump to navigationJump to search

ProcIL is a library used to manage processes on the system.

The Freya environment supports up to three concurrent processes at once, of which the first one is typically the operating system.

Functions

load

void __far* load(const char far *cmdline);

Runs the load routine of the program specified on the command line, returning its entrypoint.

run

int run(void far *entrypoint, int argc, const char far * far *argv);

Runs the passed entrypoint of the program.

exec

int exec(const char far *cmdline, int argc, const char far * far *argv);

Combines load(...) and run(...).

exit

void exit(int code);

Exits the program, returning the specified code; finishes with a $10 interrupt call.

yield

void yield(void);

suspend

TODO

resume

TODO

swap

TODO