STR (Store Register)
Stores a value from a register into memory.
32-bit Store Operations (STR)
Section titled “32-bit Store Operations (STR)”These instructions store 32-bit values from a register into memory.
Store Index
Section titled “Store Index”0x41 STR [rIdx], rSrc
Uses the address stored in rIdx to store a 32-bit value from rSrc into memory.
| Argument | Description |
|---|---|
| rIdx | The register containing the memory address to write to. |
| rSrc | The source register where the data to be stored is. |
Store Offset
Section titled “Store Offset”0x42 STR [rIdx + imm16], rSrc
Adds a signed 16-bit offset to rIdx to form an effective address, then stores the 32-bit value from rSrc at that location in memory.
| Argument | Description |
|---|---|
| rIdx | The base register containing the memory address. |
| imm16 | A signed offset (−32,768 to 32,767) added to the base address. |
| rSrc | The source register where the data to be stored is. |
Store Scaled Offset
Section titled “Store Scaled Offset”0x43 STR [rIdx + rOff * imm4], rSrc
Computes an effective address as rIdx + (rOff × imm4), then stores the 32-bit value in rDst at that memory location.
| Argument | Description |
|---|---|
| rIdx | The base register containing the memory address. |
| rOff | The register whose value is scaled and added to the base address. |
| imm4 | A 4-bit scale factor (0–15) multiplied with rOff to form the offset. |
| rSrc | The source register where the data to be stored is. |
Store Absolute
Section titled “Store Absolute”0x44 STR [imm32], rSrc
Stores the 32-bit value from rSrc into the fixed memory address specified by imm32.
| Argument | Description |
|---|---|
| imm32 | The 32-bit absolute address to write to. |
| rSrc | The source register where the data to be stored is. |