diff options
Diffstat (limited to 'subx/apps/dquotes.subx')
-rw-r--r-- | subx/apps/dquotes.subx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/subx/apps/dquotes.subx b/subx/apps/dquotes.subx index a4c146a1..0060e55c 100644 --- a/subx/apps/dquotes.subx +++ b/subx/apps/dquotes.subx @@ -121,8 +121,8 @@ convert: # in : (address buffered-file), out : (address buffered-file) -> <void 68/push 0/imm32/write 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # var word-slice/EDX = {0, 0} - 68/push 0/imm32/limit - 68/push 0/imm32/curr + 68/push 0/imm32/end + 68/push 0/imm32/start 89/copy 3/mod/direct 2/rm32/EDX . . . 4/r32/ESP . . # copy ESP to EDX # new-data-segment/EDI = new-stream(Heap, Segment-size, 1) # . EAX = new-stream(Heap, Segment-size, 1) @@ -1096,8 +1096,8 @@ test-emit-string-literal-data-empty: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # var slice/ECX = '""' - 68/push 0/imm32/limit - 68/push 0/imm32/curr + 68/push 0/imm32/end + 68/push 0/imm32/start 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # emit-string-literal-data(_test-output-stream, slice) # . . push args @@ -1290,7 +1290,7 @@ emit-metadata: # out : (address buffered-file), word : (address slice) # if *curr == '/' # break # ++curr - # slice->curr = curr + # slice->start = curr # write-slice-buffered(out, slice) # # . prolog @@ -1344,7 +1344,7 @@ $emit-metadata:skip-datum-loop: 41/increment-ECX eb/jump $emit-metadata:skip-datum-loop/disp8 $emit-metadata:emit: - # slice->curr = ECX + # slice->start = ECX 89/copy 0/mod/indirect 3/rm32/EBX . . . 1/r32/ECX . . # copy ECX to *EBX # write-slice-buffered(out, slice) # . . push args @@ -1629,7 +1629,7 @@ test-emit-metadata-in-string-literal: 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # var slice/ECX = "\"abc/def\"/ghi" 68/push _test-slice-literal-string-with-limit/imm32 - 68/push _test-slice-literal-string/imm32/curr + 68/push _test-slice-literal-string/imm32/start 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # emit-metadata(_test-output-buffered-file, slice) # . . push args @@ -1795,8 +1795,8 @@ test-next-word-or-string: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # var slice/ECX = {0, 0} - 68/push 0/imm32/limit - 68/push 0/imm32/curr + 68/push 0/imm32/end + 68/push 0/imm32/start 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # write(_test-input-stream, " ab") # . . push args @@ -1868,8 +1868,8 @@ test-next-word-or-string-returns-whole-comment: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # var slice/ECX = {0, 0} - 68/push 0/imm32/limit - 68/push 0/imm32/curr + 68/push 0/imm32/end + 68/push 0/imm32/start 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # write(_test-input-stream, " # a") # . . push args @@ -1941,8 +1941,8 @@ test-next-word-or-string-returns-empty-string-on-eof: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # var slice/ECX = {0, 0} - 68/push 0/imm32/limit - 68/push 0/imm32/curr + 68/push 0/imm32/end + 68/push 0/imm32/start 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # write nothing to _test-input-stream # next-word-or-string(_test-input-stream, slice) @@ -1983,8 +1983,8 @@ test-next-word-or-string-returns-whole-string: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # var slice/ECX = {0, 0} - 68/push 0/imm32/limit - 68/push 0/imm32/curr + 68/push 0/imm32/end + 68/push 0/imm32/start 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # write(_test-input-stream, " \"a b\"/imm32 ") # . . push args @@ -2046,8 +2046,8 @@ test-next-word-or-string-returns-string-with-escapes: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # var slice/ECX = {0, 0} - 68/push 0/imm32/limit - 68/push 0/imm32/curr + 68/push 0/imm32/end + 68/push 0/imm32/start 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX # write(_test-input-stream, " \"a\\\"b\"/x") # . . push args |