spl

systems programming language
git clone http://frotz.net/git/spl.git
Log | Files | Refs | README | LICENSE

commit 5ab6f7456fe43aee9edbf45558fcbe696e185178
parent e3bd9c8e5e9698907ab1c4086f37db0077e7c1ee
Author: Brian Swetland <swetland@frotz.net>
Date:   Tue,  1 Jul 2025 00:00:55 -0700

sr32asm: use addi for mv (as riscv does)

Diffstat:
Msoftrisc32/src/assemble-sr32.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/softrisc32/src/assemble-sr32.c b/softrisc32/src/assemble-sr32.c @@ -683,7 +683,7 @@ int parse_line(State *s) { break; case tMV: parse_2r(s, &t, &a); - emit(ins_r(IR_ADD, t, a, 0, 0)); + emit(ins_i(IR_ADD, t, a, 0)); break; case tLI: parse_r_c(s, &t);