Recently, I am working on RV32I base instruction set, and I did not find any instruction looks like LD r1, imm. Thus, I am wondering how assembly programer load an immediate to a register in RV32I system? Thanks.
To do so, programmer could use ADDI r1, r0, imm. Since r0 is a constant 0, so this instruction move imm to register r1.
I have no idea if the designers of RV32I think this way, use ADDI to replace LD r1, imm?
Hope anyone could shed some lights on it. Thanks.