| Entry | |
|---|---|
| R1 | New file handle for input |
| 0 = not redirected | |
| -1 = read | |
| R1 | New file handle for output |
| 0 = not redirected | |
| -1 = read |
| Exit | |
|---|---|
| R0 | Old file handle for input (or 0 for standard input) |
| R1 | Old file handle for output (or 0 for standard output) |
The purpose of this call is to read or write the file handles used by OS_CLI to redirect input/output.
This call is mainly provided for the use of the TaskManager, but you may also find the call useful.
Calling OS_Exit automatically removes any redirection (and closes the associated file handles) before control passes to the exit handler.