diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-08 01:05:23 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-08 01:05:23 -0700 |
commit | 925fc490d2ce8b8d411de87bd0af5b3a8a704213 (patch) | |
tree | cf565adebb4d7343d95d3a5ef18de1f21f28cad9 /subx/073next-token.subx | |
parent | e5cffe30ed38fbbdc74c63d0a94ab2a93713e43d (diff) | |
download | mu-925fc490d2ce8b8d411de87bd0af5b3a8a704213.tar.gz |
.
Be more consistent about names of ends of a slice.
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 942d9878..363be416 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/end - 68/push 0/imm32/start + 68/push 0/imm32/limit + 68/push 0/imm32/curr 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/end - 68/push 0/imm32/start + 68/push 0/imm32/limit + 68/push 0/imm32/curr 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/end - 68/push 0/imm32/start + 68/push 0/imm32/limit + 68/push 0/imm32/curr 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/end - 68/push 0/imm32/start + 68/push 0/imm32/limit + 68/push 0/imm32/curr 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/end - 68/push 0/imm32/start + 68/push 0/imm32/limit + 68/push 0/imm32/curr 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 |