SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
Store Byte to Memory with a Register Offset
STB dst, *+baseR[src1]
Functional unit = D
16 bit
| 15 | 13 | 12 | 10 | 9 | 7 | 6 | 0 |
| dst | baseR | src1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | ||||||
| 3 | 3 | 3 | opcode | ||||||||||||
The 8 LSBs (byte) of dst are stored to memory (effective address). The memory address is formed from a base address register (baseR) and an offset (number of bytes) that is a register (src1). If an offset is not given, the assembler assigns an offset of zero. Brackets, [ ], must surround the specified offset, if using the optional offset parameter.
The square brackets, [ ], indicate that the src1 is scaled by a left-shift of 0 bits. After scaling, src1 is added to baseR. The result of the calculation is the effective address in memory that contains the content from dst.
None
*(baseR[src1]) = *dst