B-32 PPC405 Core User’s Manual
stswi RS, RA, NB Store consecutive bytes in memory starting at
EA=(RA|0).
Number of bytes
n
= 32 if NB = 0, else
n
=NB.
Bytes are unstacked from CEIL(
n
/4) consecutive
registers starting with RS.
GPR(0) is consecutive to GPR(31).
9-166
stswx RS, RA, RB Store consecutive bytes in memory starting at
EA=(RA|0)+(RB).
Number of bytes
n
= XER[TBC].
Bytes are unstacked from CEIL(
n
/4)
consecutive registers starting with RS.
GPR(0) is consecutive to GPR(31).
9-166 9-167
stw RS, D(RA) Store word (RS) in memory at
EA = (RA|0) + EXTS(D).
9-166 9-169
stwbrx RS, RA, RB Store word (RS) byte-reversed in memory at EA =
(RA|0) + (RB).
MS(EA, 4)
← (RS)
24:31
|| (RS)
16:23
||
(RS)
8:15
|| (RS)
0:7
9-166 9-170
stwcx. RS, RA, RB Store word (RS) in memory at EA = (RA|0) + (RB)
only if the reservation bit is set.
if RESERVE = 1 then
MS(EA, 4)
← (RS)
RESERVE
← 0
(CR[CR0])
←
2
0 || 1 || XER
so
else
(CR[CR0])
←
2
0 || 0 || XER
so.
9-166 9-171
stwu RS, D(RA) Store word (RS) in memory at EA = (RA|0) +
EXTS(D).
Update the base address,
(RA)
← EA.
9-166 9-173
stwux RS, RA, RB Store word (RS) in memory at EA = (RA|0) + (RB).
Update the base address,
(RA)
← EA.
9-166 9-174
stwx RS, RA, RB Store word (RS) in memory at
EA = (RA|0) + (RB).
9-166 9-175
Table B-6. Storage Reference Instructions (continued)
Mnemonic Operands Function
Other Registers
Changed Page