SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Store Halfword to Memory, Postincrement with a Register Offset
STH dst, *baseR++[src1]
Functional unit = D
16 bit
15 | 13 | 12 | 10 | 9 | 7 | 6 | 0 |
dst | baseR | src1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 |
3 | 3 | 3 | opcode |
The 16 LSBs (halfword) of dst are stored to memory (effective address). The memory address is the value of the base address register (baseR). After accessing, an offset (number of halfwords) that is a register (src1) is added to baseR at the end of the EXE phase. You must type the brackets, [ ], around the specified offset, if you use the optional offset parameter.
Halfword addresses must be aligned on halfword (LSB is 0) boundaries.
None
*(baseR++[src1]) = *dst