diff options
Diffstat (limited to 'subx/065error-byte.subx')
-rw-r--r-- | subx/065error-byte.subx | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/subx/065error-byte.subx b/subx/065error-byte.subx index 82cfd21e..dd14df4c 100644 --- a/subx/065error-byte.subx +++ b/subx/065error-byte.subx @@ -16,7 +16,7 @@ #? # . error-byte(ed, Stdout, msg, 34) #? 68/push 0x34/imm32 #? 68/push "abc"/imm32 -#? 68/push Stdout/imm32 +#? 68/push Stderr/imm32 #? 50/push-EAX #? e8/call error-byte/disp32 # automatic test @@ -91,4 +91,22 @@ $error-byte:dead-end: 5d/pop-to-EBP c3/return +== data + +# The buffered file for standard error. +Stderr: + # file descriptor or (address stream) + 02 00 00 00 # 1 = standard error + # current write index + 00 00 00 00 + # current read index + 00 00 00 00 + # length (8) + 08 00 00 00 + # data + 00 00 00 00 00 00 00 00 # 8 bytes + +# TODO: 8 bytes is too small. We'll need to grow the buffer for efficiency. But +# I don't want to type in 1024 bytes here. + # . . vim:nowrap:textwidth=0 |