From: Bryan English Date: Mon, 9 Feb 2026 14:32:20 +0000 (-0500) Subject: fix storage builtins X-Git-Url: https://rethought.computer/gitweb//gitweb//git?a=commitdiff_plain;h=18201db05389dc072416c64ba1c4eb5cf468adf8;p=sorel-lang.git fix storage builtins --- diff --git a/rel-lang/sorelc/src/riscv_asm_codegen.rs b/rel-lang/sorelc/src/riscv_asm_codegen.rs index 5caeffd..c382cdf 100644 --- a/rel-lang/sorelc/src/riscv_asm_codegen.rs +++ b/rel-lang/sorelc/src/riscv_asm_codegen.rs @@ -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");