sth
Store Halfword
Preliminary PPC440x5 CPU Core User’s Manual
instrset.fm.
September 12, 2002 Page 413 of 589
sth
Store Halfword
EA ← (RA|0) + EXTS(D)
MS(EA, 2)
← (RS)
16:31
An effective address (EA) is formed by adding a displacement to a base address. The displacement is
obtained by sign-extending the 16-bit D field to 32 bits. The base address is 0 when the RA field is 0 and is
the contents of register RA otherwise.
The least significant halfword of register RS is stored into the halfword at the EA in main storage.
Registers Altered
• None
sth RS, D(RA)
44 RS RA D
0 6 11 16 31