diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-02-10 16:54:20 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-02-10 16:54:20 -0800 |
commit | 38ef68b269fb18097e2d62ba6a8a1a5853d5d16d (patch) | |
tree | 38256e7a75cf0e546048d6fedc1272163ec6576e /subx/071read-line.subx | |
parent | 6e181e7fd998a0d542cb531c929c905a243ea2f6 (diff) | |
download | mu-38ef68b269fb18097e2d62ba6a8a1a5853d5d16d.tar.gz |
4954
Diffstat (limited to 'subx/071read-line.subx')
-rw-r--r-- | subx/071read-line.subx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/subx/071read-line.subx b/subx/071read-line.subx index 5eba31c1..3efa96e0 100644 --- a/subx/071read-line.subx +++ b/subx/071read-line.subx @@ -134,9 +134,9 @@ test-read-line: e8/call clear-stream/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # . clear-stream(_test-stream-buffer) + # . clear-stream(_test-tmp-stream) # . . push args - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 # . . call e8/call clear-stream/disp32 # . . discard args @@ -166,10 +166,10 @@ test-read-line: e8/call write/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # read a line from _test-stream (buffered by _test-buffered-file) into _test-stream-buffer - # . EAX = read-line(_test-buffered-file, _test-stream-buffer) + # read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream + # . EAX = read-line(_test-buffered-file, _test-tmp-stream) # . . push args - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 68/push _test-buffered-file/imm32 # . . call e8/call read-line/disp32 @@ -184,11 +184,11 @@ test-read-line: e8/call check-ints-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP - # check-next-stream-line-equal(_test-stream-buffer, "ab", msg) + # check-next-stream-line-equal(_test-tmp-stream, "ab", msg) # . . push args 68/push "F - test-read-line"/imm32 68/push "ab"/imm32 - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 # . . call e8/call check-next-stream-line-equal/disp32 # . . discard args @@ -214,17 +214,17 @@ test-read-line-returns-true-on-eof: e8/call clear-stream/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # . clear-stream(_test-stream-buffer) + # . clear-stream(_test-tmp-stream) # . . push args - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 # . . call e8/call clear-stream/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # write nothing - # EAX = read-line(_test-buffered-file, _test-stream-buffer) + # EAX = read-line(_test-buffered-file, _test-tmp-stream) # . . push args - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 68/push _test-buffered-file/imm32 # . . call e8/call read-line/disp32 @@ -260,9 +260,9 @@ test-read-line-reads-final-line-until-eof: e8/call clear-stream/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # . clear-stream(_test-stream-buffer) + # . clear-stream(_test-tmp-stream) # . . push args - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 # . . call e8/call clear-stream/disp32 # . . discard args @@ -275,10 +275,10 @@ test-read-line-reads-final-line-until-eof: e8/call write/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # read a line from _test-stream (buffered by _test-buffered-file) into _test-stream-buffer - # . EAX = read-line(_test-buffered-file, _test-stream-buffer) + # read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream + # . EAX = read-line(_test-buffered-file, _test-tmp-stream) # . . push args - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 68/push _test-buffered-file/imm32 # . . call e8/call read-line/disp32 @@ -293,11 +293,11 @@ test-read-line-reads-final-line-until-eof: e8/call check-ints-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP - # check-stream-equal(_test-stream-buffer, "cd", msg) + # check-stream-equal(_test-tmp-stream, "cd", msg) # . . push args 68/push "F - test-read-line-reads-final-line-until-eof"/imm32 68/push "cd"/imm32 - 68/push _test-stream-buffer/imm32 + 68/push _test-tmp-stream/imm32 # . . call e8/call check-stream-equal/disp32 # . . discard args |