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 />

B.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 />

Table 6: Extended mnemonics for moving to/from an SPR<br />

Special Purpose Register<br />

Move To SPR<br />

Move From SPR<br />

Extended Equivalent to Extended Equivalent to<br />

Fixed-Point Exception Register mtxer Rx mtspr 1,Rx mfxer Rx mfspr Rx,1<br />

Link Register mtlr Rx mtspr 8,Rx mflr Rx mfspr Rx,8<br />

Count Register mtctr Rx mtspr 9,Rx mfctr Rx mfspr Rx,9<br />

Decrementer mtdec Rx mtspr 22,Rx mfdec Rx mfspr Rx,22<br />

Save/Restore Register 0 mtsrr0 Rx mtspr 26,Rx mfsrr0 Rx mfspr Rx,26<br />

Save/Restore Register 1 mtsrr1 Rx mtspr 27,Rx mfsrr1 Rx mfspr Rx,27<br />

Special Purpose Registers<br />

G0 through G3<br />

mtsprg n,Rx mtspr 272+n,Rx mfsprg Rx,n mfspr Rx,272+n<br />

Time Base [Lower] mttbl Rx mtspr 284,Rx mftb Rx mfspr Rx,268<br />

Time Base Upper mttbu Rx mtspr 285,Rx mftbu Rx mfspr Rx,269<br />

Processor <strong>Version</strong> Register - - mfpvr Rx mfspr Rx,287<br />

614<br />

<strong>Power</strong> ISA -- Book III-E

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

Saved successfully!

Ooh no, something went wrong!