diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-08 17:02:09 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-08 17:02:09 -0700 |
commit | 476049a09da496c265e5a9b24466da1b28d66ef6 (patch) | |
tree | d0168f2da7b3b33b45eb6bae0e6cd6f22a868ab3 /subx/073next-token.subx | |
parent | fe77a29e6a365427c2ff780d5f559e227033ad8e (diff) | |
download | mu-476049a09da496c265e5a9b24466da1b28d66ef6.tar.gz |
.
Be more consistent about names of ends of a slice. (In the opposite direction compared to last night's 925fc490d2ce8b8d411de87bd0af5b3a8a704213.)
Diffstat (limited to 'subx/073next-token.subx')
-rw-r--r-- | subx/073next-token.subx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/subx/073next-token.subx b/subx/073next-token.subx index 363be416..942d9878 100644 --- a/subx/073next-token.subx +++ b/subx/073next-token.subx @@ -67,8 +67,8 @@ test-next-token: # . . 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-stream, " ab") # . . push args @@ -131,8 +131,8 @@ test-next-token-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-stream # next-token(_test-stream, 0x20/space, slice) @@ -217,8 +217,8 @@ test-next-token-from-slice: 8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/EAX 1/index/ECX . 1/r32/ECX 4/disp8 . # copy EAX+ECX+4 to ECX 05/add-to-EAX 4/imm32 # var out/EDI : (address slice) = {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 7/rm32/EDI . . . 4/r32/ESP . . # copy ESP to EDI # next-token-from-slice(EAX, ECX, 0x20/space, out) # . . push args @@ -266,8 +266,8 @@ test-next-token-from-slice-Eof: 55/push-EBP 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP # var out/EDI : (address slice) = {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 7/rm32/EDI . . . 4/r32/ESP . . # copy ESP to EDI # next-token-from-slice(0, 0, 0x20/space, out) # . . push args @@ -307,8 +307,8 @@ test-next-token-from-slice-nothing: 8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/EAX 1/index/ECX . 1/r32/ECX 4/disp8 . # copy EAX+ECX+4 to ECX 05/add-to-EAX 4/imm32 # var out/EDI : (address slice) = {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 7/rm32/EDI . . . 4/r32/ESP . . # copy ESP to EDI # next-token-from-slice(in, 0x20/space, out) # . . push args |