14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Version</strong> <strong>2.03</strong><br />

3.3.3 Fixed-Point Store Instructions<br />

The contents of register RS are stored into the byte,<br />

halfword, word, or doubleword in storage addressed by<br />

EA.<br />

Many of the Store instructions have an “update” form,<br />

in which register RA is updated with the effective<br />

address. For these forms, the following rules apply.<br />

<br />

<br />

If RA≠0, the effective address is placed into register<br />

RA.<br />

If RS=RA, the contents of register RS are copied to<br />

the target storage element and then EA is placed<br />

into RA (RS).<br />

Store Byte<br />

D-form<br />

Store Byte Indexed<br />

X-form<br />

stb<br />

RS,D(RA)<br />

stbx<br />

RS,RA,RB<br />

38 RS RA D<br />

0 6 11 16 31<br />

if RA = 0 then b 0<br />

else<br />

b (RA)<br />

EA b + EXTS(D)<br />

MEM(EA, 1) (RS) 56:63<br />

Let the effective address (EA) be the sum (RA|0)+ D.<br />

(RS) 56:63 are stored into the byte in storage addressed<br />

by EA.<br />

Special Registers Altered:<br />

None<br />

31 RS RA RB 215 /<br />

0 6 11 16 21 31<br />

if RA = 0 then b 0<br />

else<br />

b (RA)<br />

EA b + (RB)<br />

MEM(EA, 1) (RS) 56:63<br />

Let the effective address (EA) be the sum<br />

(RA|0)+ (RB). (RS) 56:63 are stored into the byte in storage<br />

addressed by EA.<br />

Special Registers Altered:<br />

None<br />

Store Byte with Update<br />

D-form<br />

Store Byte with Update Indexed<br />

X-form<br />

stbu<br />

RS,D(RA)<br />

stbux<br />

RS,RA,RB<br />

39 RS RA D<br />

0 6 11 16 31<br />

EA (RA) + EXTS(D)<br />

MEM(EA, 1) (RS) 56:63<br />

RA EA<br />

Let the effective address (EA) be the sum (RA)+ D.<br />

(RS) 56:63 are stored into the byte in storage addressed<br />

by EA.<br />

EA is placed into register RA.<br />

If RA=0, the instruction form is invalid.<br />

Special Registers Altered:<br />

None<br />

31 RS RA RB 247 /<br />

0 6 11 16 21 31<br />

EA (RA) + (RB)<br />

MEM(EA, 1) (RS) 56:63<br />

RA EA<br />

Let the effective address (EA) be the sum (RA)+ (RB).<br />

(RS) 56:63 are stored into the byte in storage addressed<br />

by EA.<br />

EA is placed into register RA.<br />

If RA=0, the instruction form is invalid.<br />

Special Registers Altered:<br />

None<br />

Chapter 3. Fixed-Point Processor<br />

45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!