about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-17 22:50:58 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-18 00:44:51 -0700
commit9f07cea8f1501eb603847b91751d556f6c121dd1 (patch)
tree222af4e36166ac267838c54eb0726c387cce0169 /apps
parent0a35319237d0db3bbc39f73d0a2436edf066ad51 (diff)
downloadmu-9f07cea8f1501eb603847b91751d556f6c121dd1.tar.gz
mu.subx: 10/50 top-level tests passing
Diffstat (limited to 'apps')
-rw-r--r--apps/mu.subx5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index eb8fd1f9..3574bfa2 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -5797,6 +5797,7 @@ lookup-or-define-var:  # name: (addr slice), vars: (addr stack (handle var)), fn
       # if name is one of fn's outputs, return it
       {
         (find-in-function-outputs *(ebp+0x10) *(ebp+8) *(ebp+0x14))
+        8b/-> *(ebp+0x14) 0/r32/eax
         81 7/subop/compare *eax 0/imm32
         # otherwise abort
         0f 84/jump-if-= $lookup-var:abort/disp32
@@ -5819,7 +5820,7 @@ find-in-function-outputs:  # fn: (addr function), name: (addr slice), out: (addr
     51/push-ecx
     # var curr/ecx: (addr list var) = lookup(fn->outputs)
     8b/-> *(ebp+8) 1/r32/ecx
-    (lookup *(ecx+0x10) *(ecx+0x14))  # => eax
+    (lookup *(ecx+0x10) *(ecx+0x14))  # Function-outputs Function-outputs => eax
     89/<- %ecx 0/r32/eax
     # while curr != null
     {
@@ -5836,7 +5837,7 @@ find-in-function-outputs:  # fn: (addr function), name: (addr slice), out: (addr
         74/jump-if-= break/disp8
         # var edi = out
         57/push-edi
-        89/<- *(ebp+0x10) 7/r32/edi
+        8b/-> *(ebp+0x10) 7/r32/edi
         # *out = curr->value
         8b/-> *ecx 0/r32/eax
         89/<- *edi 0/r32/eax