Why doesn't MIPS have a Store Immediate instruction just like Load Immediate instruction?

9.5k Views Asked by At

MIPS has a Load Immediate (LI) pseudo instruction to load a 32-bit immediate value into a register. But it does not have Store Immediate (SI) instruction to store a 32-bit immediate value to Memory. Can someone explain me why?

1

There are 1 best solutions below

2
On

load immediate is from immediate to register, store immediate would be register to...immediate...that doesnt make sense. you want to store to memory you load a register with data a register with an address and do a store. it is (supposedly) a load and store architecture, you do everything (memory-wise) through registers, not directly.