about summary refs log tree commit diff stats
path: root/subx/072slice.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-04-13 22:30:25 -0700
committerKartik Agaram <vc@akkartik.com>2019-04-13 22:43:17 -0700
commit0b91d25cf591888252d5e99e7986e2544de31695 (patch)
tree173b2364d9c3027a05f7f3732c650094a26ba114 /subx/072slice.subx
parentd2f360d85eb9129983fc77a7d756ddd0676dd9dc (diff)
downloadmu-0b91d25cf591888252d5e99e7986e2544de31695.tar.gz
5090
Start using the new newline escape in string literals everywhere.

I could use it more aggressively, but it makes tests harder to read. So
only one line of text per string for now.
Diffstat (limited to 'subx/072slice.subx')
-rw-r--r--subx/072slice.subx12
1 files changed, 2 insertions, 10 deletions
diff --git a/subx/072slice.subx b/subx/072slice.subx
index a795e608..9c285097 100644
--- a/subx/072slice.subx
+++ b/subx/072slice.subx
@@ -946,17 +946,9 @@ test-slice-to-string:
 #?     e8/call  write/disp32
 #?     # . . discard args
 #?     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-#?     # . write(2/stderr, "$")
+#?     # . write(2/stderr, "$\n")
 #?     # . . push args
-#?     68/push  "$"/imm32
-#?     68/push  2/imm32/stderr
-#?     # . . call
-#?     e8/call  write/disp32
-#?     # . . discard args
-#?     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-#?     # . write(2/stderr, "\n")
-#?     # . . push args
-#?     68/push  Newline/imm32
+#?     68/push  "$\n"/imm32
 #?     68/push  2/imm32/stderr
 #?     # . . call
 #?     e8/call  write/disp32