diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-04-08 03:16:34 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-04-08 03:16:34 -0400 |
| commit | ad3c46f34c64b41dd59d3e2401c55d44f8531e55 (patch) | |
| tree | d7ee5b78a912929d26ab9d181649e51d495565d8 | |
| parent | e4ccfa787357d14eed478e1b33542c7b6529a2ea (diff) | |
[tnslc] fixes for mov
| -rw-r--r-- | tnslc/compile/var.tnsl | 10 |
1 files 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) |