diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-05-04 02:10:38 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-05-04 02:10:38 -0400 |
| commit | 06c25eef96d43f478fd28b44e0e9dfeae91d07cb (patch) | |
| tree | 907297b06f23821d337329b447bc8fa4725853e6 /tnslc/compile/var.tnsl | |
| parent | 1de32dbcac6a7a9756df034b914a4a836ca5bbac (diff) | |
[tnslc] better dot chain, begin on function call (not done)
Diffstat (limited to 'tnslc/compile/var.tnsl')
| -rw-r--r-- | tnslc/compile/var.tnsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl index f41d233..477a4fb 100644 --- a/tnslc/compile/var.tnsl +++ b/tnslc/compile/var.tnsl @@ -920,7 +920,7 @@ struct Var { buf`.add_c(" ; putting struct address into register\n\0") # Initial deref or move - /; if (self.ptrc.count > 0) + /; if (self.ptrc.count > 1) buf`.add_c(" mov \0") ;; else buf`.add_c(" lea \0") @@ -1670,6 +1670,7 @@ struct Var { /; if (self.is_ref() == true) self._set_struct_r(buf, 5) out.loc = 5 + out.ptr_push(0) ;; else out.loc = self.loc out.offset = out.offset + self.offset |