diff --git a/console.txt b/console.txt index c838582..3f74656 100644 --- a/console.txt +++ b/console.txt @@ -22,26 +22,26 @@ child processes, or host messages. the type port (0x17) says which. the type (0x17) field explains how to interpret calls to the console vector (0x10) and where data can be read from: - - 0x00 - no input (-) - - 0x01 - stdin (stdin) - - 0x02 - argument (stdin) - - 0x03 - argument spacer (-) - - 0x04 - argument end (-) - - 0x05 - host response - - 0x06 - host response end (-) - - 0x07 - stdin end (-) - - 0x20 - child 0 sent data - - 0x21 - child 1 sent data - - 0x22 - child 2 sent data - - 0x23 - child 3 sent data - - 0x40 - child 0 data end - - 0x41 - child 1 data end - - 0x42 - child 2 data end - - 0x43 - child 3 data end - - 0x80 - child 0 exited (stdin contains exit code) - - 0x81 - child 1 exited (stdin contains exit code) - - 0x82 - child 2 exited (stdin contains exit code) - - 0x83 - child 3 exited (stdin contains exit code) + - 0x00 - 00000000 - no input (-) + - 0x01 - 00000001 - stdin (stdin) + - 0x02 - 00000010 - argument (stdin) + - 0x03 - 00000011 - argument spacer (-) + - 0x04 - 00000100 - argument end (-) + - 0x05 - 00000101 - host response + - 0x06 - 00000110 - host response end (-) + - 0x07 - 00000111 - stdin end (-) + - 0x20 - 00100000 - child 0 sent data + - 0x21 - 00100001 - child 1 sent data + - 0x22 - 00100010 - child 2 sent data + - 0x23 - 00100011 - child 3 sent data + - 0x40 - 01000000 - child 0 data end + - 0x41 - 01000001 - child 1 data end + - 0x42 - 01000010 - child 2 data end + - 0x43 - 01000011 - child 3 data end + - 0x80 - 10000000 - child 0 exited (stdin contains exit code) + - 0x81 - 10000001 - child 1 exited (stdin contains exit code) + - 0x82 - 10000010 - child 2 exited (stdin contains exit code) + - 0x83 - 10000011 - child 3 exited (stdin contains exit code) writing a byte to the stdout port (0x18) will send one byte of data to the emulator's stdout.