Load/Store and Data Movement Instructions


These instructions are with the I-type format and include:
Loads Stores Data Movement Immediate
 lw  rd, mem
 lh  rd, mem
 lhu rd, mem
 lb  rd, mem
 lbu rd, mem
 sw rs, mem 
 sh rs, mem
 sb rs, mem
 move rd, rs
 la  rd, mem
 li  rd, imm 
 lui rd, imm

The effective address (EA) of the memory location (i.e., the mem field) is specified by any of the three addressing modes, which will be detailed later: where [ ] means “contents of.” The lh and lb are signed loads; i.e., the sign is extended to fill the upper bits of the register. lhu and lbu are unsigned—the upper bits of the register are filled with zeros. The la, li, lui, and move instructions are not really load instructions since they do not access memory.