]> rethought.computer Git - sorel-lang.git/commitdiff
fix storage builtins keep/18201db05389dc072416c64ba1c4eb5cf468adf8
authorBryan English <bryan@rethought.computer>
Mon, 9 Feb 2026 14:32:20 +0000 (09:32 -0500)
committerBryan English <bryan@rethought.computer>
Tue, 10 Feb 2026 04:08:55 +0000 (04:08 +0000)
rel-lang/sorelc/src/riscv_asm_codegen.rs

index 5caeffd642c350284f73f51066c3c5f606c4b7f5..c382cdfc3e8114e5b75e47cc2672f245825741c1 100644 (file)
@@ -199,15 +199,15 @@ impl<'a> CodeGen<'a> {
                 },
                 IR::Store8 => { // ( x addr -- )
                     self.pop_some_to("t0 t1");
-                    self.line("sbu t0, 0(t1)"); // store x at addr 
+                    self.line("sb t0, 0(t1)"); // store x at addr 
                 },
                 IR::Store16 => { // ( x addr -- )
                     self.pop_some_to("t0 t1");
-                    self.line("shu t0, 0(t1)"); // store x at addr 
+                    self.line("sh t0, 0(t1)"); // store x at addr 
                 },
                 IR::Store32 => { // ( x addr -- )
                     self.pop_some_to("t0 t1");
-                    self.line("shu t0, 0(t1)"); // store x at addr 
+                    self.line("sw t0, 0(t1)"); // store x at addr 
                 },
                 IR::Store => { // ( x addr -- )
                     self.pop_some_to("t0 t1");