From ad3c46f34c64b41dd59d3e2401c55d44f8531e55 Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Wed, 8 Apr 2026 03:16:34 -0400 Subject: [tnslc] fixes for mov --- tnslc/compile/var.tnsl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl index 18502f1..8c6a532 100644 --- a/tnslc/compile/var.tnsl +++ b/tnslc/compile/var.tnsl @@ -591,7 +591,7 @@ struct Var { utils.Vector vout /; if (self.loc + 1 == 0) # Stack - vout.from_cstr("rbp \0") + vout.from_cstr("rbp\0") ;; else vout.from_cstr("rel \0") vout.push_cstr(self.name) @@ -600,9 +600,9 @@ struct Var { int off = self.offset /; if (off < 0) off = 0 - off - vout.push_cstr("- \0") + vout.push_cstr(" - \0") ;; else if (off > 0) - vout.push_cstr("+ \0") + vout.push_cstr(" + \0") ;/ /; if (off !== 0) @@ -624,7 +624,7 @@ struct Var { ;/ # If in memory we need to wrap in [] - /; if (self.in_mem() == false) + /; if (self.in_mem() == true) utils.Vector vout vout.from_cstr("[\0") vout.push_cstr(out) @@ -722,7 +722,7 @@ struct Var { ~uint8 sr = other`._set_prim_r(buf, ~self) ~uint8 sl = self._set_prim_l(buf) - buf`.add_c(" mov\0") + buf`.add_c(" mov \0") buf`.add_c(sl) buf`.add_c(", \0") buf`.add_c(sr) -- cgit v1.2.3