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 Fixed-Point Processor Instructions<br />

3.3.1 Fixed-Point Storage Access Instructions<br />

The Storage Access instructions compute the effective<br />

address (EA) of the storage to be accessed as<br />

described in Section 1.10.3 on page 21.<br />

Programming Note<br />

The la extended mnemonic permits computing an<br />

effective address as a Load or Store instruction<br />

would, but loads the address itself into a GPR<br />

rather than loading the value that is in storage at<br />

that address.<br />

Programming Note<br />

The DS field in DS-form Storage Access instructions<br />

is a word offset, not a byte offset like the D<br />

field in D-form Storage Access instructions. However,<br />

for programming convenience, Assemblers<br />

should support the specification of byte offsets for<br />

both forms of instruction.<br />

3.3.1.1 Storage Access Exceptions<br />

Storage accesses will cause the system data storage<br />

error handler to be invoked if the program is not<br />

allowed to modify the target storage (Store only), or if<br />

the program attempts to access storage that is unavailable.<br />

3.3.2 Fixed-Point Load Instructions<br />

The byte, halfword, word, or doubleword in storage<br />

addressed by EA is loaded into register RT.<br />

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

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

For these forms, if RA≠0 and RA≠RT, the effective<br />

address is placed into register RA and the storage element<br />

(byte, halfword, word, or doubleword) addressed<br />

by EA is loaded into RT.<br />

Programming Note<br />

In some implementations, the Load Algebraic and<br />

Load with Update instructions may have greater<br />

latency than other types of Load instructions.<br />

Moreover, Load with Update instructions may take<br />

longer to execute in some implementations than<br />

the corresponding pair of a non-update Load<br />

instruction and an Add instruction.<br />

38<br />

<strong>Power</strong> ISA -- Book I

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

Saved successfully!

Ooh no, something went wrong!