about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-17 18:36:35 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-18 00:44:51 -0700
commit889ed4102102944e3dc5ba017d6b3f1376795b4e (patch)
treec9e669cc8621785220f4728898bc7293bf855ba9
parent09e047b5dbc8ae20054b17b9c564c0c7cc51079f (diff)
downloadmu-889ed4102102944e3dc5ba017d6b3f1376795b4e.tar.gz
mu.subx: 4/50 top-level tests passing
-rw-r--r--apps/mu.subx3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index b8f055a9..d3410773 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -7369,12 +7369,13 @@ $populate-mu-type-offsets-in-inouts:loop:
       (lookup *ecx *(ecx+4))  # List-value List-value => eax
       89/<- %ebx 0/r32/eax
       # v->offset = next-offset
-      89/<- *(ebx+0xc) 2/r32/edx  # Var-offset
+      89/<- *(ebx+0x14) 2/r32/edx  # Var-offset
       # next-offset += size-of(v)
       (size-of %ebx)  # => eax
       01/add-to %edx 0/r32/eax
       # curr = lookup(curr->next)
       (lookup *(ecx+8) *(ecx+0xc))  # List-next List-next => eax
+      89/<- %ecx 0/r32/eax
       #
       eb/jump loop/disp8
     }