about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-02-02 07:55:19 -0800
committerKartik Agaram <vc@akkartik.com>2020-02-02 07:55:19 -0800
commit8099ed348d042362b5548551a51a4e3a12af4420 (patch)
tree7a61ffb82f19b7210eaeba6c7613788e2f6537ad /apps
parent14c4ab3828aedf6abe7c82e4b5839953505c41c8 (diff)
downloadmu-8099ed348d042362b5548551a51a4e3a12af4420.tar.gz
5977
Diffstat (limited to 'apps')
-rwxr-xr-xapps/mubin110528 -> 110559 bytes
-rw-r--r--apps/mu.subx9
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/mu b/apps/mu
index af7cbfb0..b54a5b8d 100755
--- a/apps/mu
+++ b/apps/mu
Binary files differdiff --git a/apps/mu.subx b/apps/mu.subx
index 94703d5a..5119f5b7 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -3666,7 +3666,7 @@ test-parse-mu-stmt:
     # var v/edx: var
     81 5/subop/subtract %esp 0x14/imm32  # Var-size
     89/<- %edx 4/r32/esp
-    (zero-out %edx 0x14)
+    (zero-out %edx 0x14)  # Var-size
     # v->name = "n"
     c7 0/subop/copy *edx "n"/imm32  # Var-name
     #
@@ -3702,7 +3702,7 @@ test-parse-mu-stmt-with-comma:
     # var v/edx: var
     81 5/subop/subtract %esp 0x14/imm32  # Var-size
     89/<- %edx 4/r32/esp
-    (zero-out %edx 0x14)
+    (zero-out %edx 0x14)  # Var-size
     # v->name = "n"
     c7 0/subop/copy *edx "n"/imm32  # Var-name
     #
@@ -3830,12 +3830,12 @@ new-literal-string:  # ad: (addr allocation-descriptor), name: (addr slice) -> r
     89/<- %ecx 0/r32/eax
     # result/ecx = new var(s)
     (allocate *(ebp+8) *Var-size)  # => eax
-    (zero-out %eax)
+    (zero-out %eax *Var-size)
     89/<- *eax 1/r32/ecx  # Var-name
     89/<- %ecx 0/r32/eax
     # result->type = new type()
     (allocate *(ebp+8) *Tree-size)  # => eax
-    (zero-out %eax)  # default type is 'literal'
+    (zero-out %eax *Tree-size)  # default type is 'literal'
     89/<- *(ecx+4) 0/r32/eax  # Var-type
     # move result to eax
     89/<- %eax 1/r32/ecx
@@ -3861,6 +3861,7 @@ new-label:  # ad: (addr allocation-descriptor), name: (addr slice) -> result/eax
     89/<- *eax 1/r32/ecx  # Var-name
     89/<- %ecx 0/r32/eax
     (allocate *(ebp+8) *Tree-size)  # => eax
+    (zero-out %eax *Tree-size)  # labels are literals
     89/<- *(ecx+4) 0/r32/eax  # Var-type
     89/<- %eax 1/r32/ecx
     c7 0/subop/copy *(eax+8) 0/imm32  # Var-block-depth