T.I.M | ISA Specification
 All Pages
STORI

Description

Stores a value from the source register into memory. The address used is made up of the 16 bit immediate and the contents of the second source register. The immediate is interpreted as a 4-byte aligned unsigned value. The STORI instruction does not allow byte masking like the STORR instruction does, hence it will always store an entire word into memory.

Register Access

The STORI instruction can use any of the general purpose registers R0 to R15 as its two source operands.

Memory Layout

This is a 4 byte instruction

Opcode | Condition Code | Source | Source |Immediate
000010 | 00 | SSSS | ssss | IIII IIII IIII IIII

Assembly Code Examples

When an immediate is supplied that does not fit into 16 bits, the lower 16 bits are used and any upper bits are discarded by the assembler.

Immediates that specify fewer than 4 bytes are padded with high order zeros to make them 16 bits long explicitly.

1. | STORE $R0 $R2 0xFF001
2. | STORE $R0 $R2 0xAB003
3. | STORE $R0 $R2 0dF056
See Also
Instructions Quick Reference, STORR