about summary refs log tree commit diff stats
path: root/apps/mu.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-04-23 23:10:31 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-18 00:44:47 -0700
commitb91618cac6a5a30dce94704f69dfbee27edbd51f (patch)
tree1e011ce609860d5407e740b08d77fe2b61899bf0 /apps/mu.subx
parentd9bb6036d1ec1a56fefcab6a511e8528b4f988ec (diff)
downloadmu-b91618cac6a5a30dce94704f69dfbee27edbd51f.tar.gz
mu.subx: parse-var-with-type
Diffstat (limited to 'apps/mu.subx')
-rw-r--r--apps/mu.subx9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index 1b0b09a6..afe7d628 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -3737,13 +3737,8 @@ $parse-var-with-type:write-register:
       (slice-to-string Heap %ecx %eax)
     }
 $parse-var-with-type:save-type:
-    # TODO: handle from here
-    (parse-type Heap *(ebp+0xc))  # => eax
-#?     (write-buffered Stderr "saving to var ")
-#?     (print-int32-buffered Stderr %edi)
-#?     (write-buffered Stderr Newline)
-#?     (flush Stderr)
-    89/<- *(edi+8) 0/r32/eax  # Var-type
+    8d/copy-address *(edi+8) 0/r32/eax  # Var-type
+    (parse-type Heap *(ebp+0xc) %eax)
 $parse-var-with-type:end:
     # . reclaim locals
     81 0/subop/add %esp 8/imm32