diff options
author | Kartik Agaram <github@akkartik.com> | 2019-05-15 23:57:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 23:57:06 -0700 |
commit | 79ff55652c6386715f7b1bd2f476404d23a8d83e (patch) | |
tree | ffed8f360daa0cb4e8b272ff1c02317aef4a94fa /subx/apps/subx-common.subx | |
parent | 0c30f0cf1b58a8c684ab8cdbaa96637e3f6f3bd3 (diff) | |
parent | 438e5a0db04d7a6e1a7199771cca16720c0b4b8d (diff) | |
download | mu-79ff55652c6386715f7b1bd2f476404d23a8d83e.tar.gz |
Merge pull request #26 from akkartik/dquotes-1
SubX in SubX: Transforming uses of string literals (prerequisite A)
Diffstat (limited to 'subx/apps/subx-common.subx')
-rw-r--r-- | subx/apps/subx-common.subx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/apps/subx-common.subx b/subx/apps/subx-common.subx index 0807b210..cba1e9cc 100644 --- a/subx/apps/subx-common.subx +++ b/subx/apps/subx-common.subx @@ -7,7 +7,7 @@ # write an entire stream's contents to a buffered-file # ways to do this: -# - construct a 'maximal slice' and pass it to write-slice +# - construct a 'maximal slice' and pass it to write-slice-buffered # - flush the buffered-file and pass the stream directly to its fd (disabling buffering) # we'll go with the first way for now write-stream-data: # f : (address buffered-file), s : (address stream) -> <void> @@ -30,12 +30,12 @@ write-stream-data: # f : (address buffered-file), s : (address stream) -> <void 50/push-EAX # . ECX = ESP 89/copy 3/mod/direct 1/rm32/ECX . . . 4/r32/ESP . . # copy ESP to ECX - # write-slice(f, slice) + # write-slice-buffered(f, slice) # . . push args 51/push-ECX ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP . . . . 8/disp8 . # push *(EBP+8) # . . call - e8/call write-slice/disp32 + e8/call write-slice-buffered/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP $write-stream-data:end: |