diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-05-11 10:47:34 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-05-11 10:47:34 -0700 |
commit | ff167ad77a615ef0506dce1e21c973533ca83088 (patch) | |
tree | 4c84f3979f4e5008ad00188356a93ca202b81ff2 /subx/062write-stream.subx | |
parent | 258f6b3a3a51f62851731cdb391b65667cde2993 (diff) | |
download | mu-ff167ad77a615ef0506dce1e21c973533ca83088.tar.gz |
5154
Bugfix: I'd neglected to update the input stream's state when natively writing a stream to file.
Diffstat (limited to 'subx/062write-stream.subx')
-rw-r--r-- | subx/062write-stream.subx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/062write-stream.subx b/subx/062write-stream.subx index 73766fe3..eb2df0c5 100644 --- a/subx/062write-stream.subx +++ b/subx/062write-stream.subx @@ -102,6 +102,8 @@ _write-stream: # fd : int, s : (address stream) -> <void> # . . syscall b8/copy-to-EAX 4/imm32/write cd/syscall 0x80/imm8 + # s->read += EAX + 01/add 1/mod/*+disp8 6/rm32/ESI . . . 0/r32/EAX 4/disp8 . # add EAX to *(ESI+4) # . restore registers 5f/pop-to-EDI 5e/pop-to-ESI |