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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Appendix A. Assembler Extended Mnemonics<br />

In order to make assembler language programs simpler<br />

to write and easier to understand, a set of extended<br />

mnemonics and symbols is provided for certain instructions.<br />

This appendix defines extended mnemonics and<br />

symbols related to instructions defined in Book III.<br />

Assemblers should provide the extended mnemonics<br />

and symbols listed here, and may provide others.<br />

A.1 Move To/From Special Purpose Register Mnemonics<br />

This section defines extended mnemonics for the<br />

mtspr and mfspr instructions, including the Special<br />

Purpose Registers (SPRs) defined in Book I and certain<br />

privileged SPRs, and for the Move From Time<br />

Base instruction defined in Book II.<br />

The mtspr and mfspr instructions specify an SPR as a<br />

numeric operand; extended mnemonics are provided<br />

that represent the SPR in the mnemonic rather than<br />

requiring it to be coded as an operand. Similar<br />

extended mnemonics are provided for the Move From<br />

Time Base instruction, which specifies the portion of<br />

the Time Base as a numeric operand.<br />

Note: mftb serves as both a basic and an extended<br />

mnemonic. The Assembler will recognize an mftb mnemonic<br />

with two operands as the basic form, and an<br />

mftb mnemonic with one operand as the extended<br />

form. In the extended form the TBR operand is omitted<br />

and assumed to be 268 (the value that corresponds to<br />

TB).<br />

Programming Note<br />

The extended mnemonics in Table 3 for SPRs<br />

associated with the Performance Monitor facility<br />

are based on the definitions in Appendix B.<br />

Other versions of Performance Monitor facilities<br />

used different sets of SPR numbers (all 32-bit <strong>Power</strong>PC<br />

processors used a different set, and some<br />

early <strong>Power</strong> ISA processors used yet a different<br />

set).<br />

Appendix A. Assembler Extended Mnemonics<br />

471

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

Saved successfully!

Ooh no, something went wrong!