mttar

Move To Target Address Register

mttar RS

Moves a GPR value to the TAR.

Encoding

Binary Layout
31
0:5
RS
6:10
129
11:20
467
21:30
/
31
 
Format XFX-form
Opcode 0x7C0FCBA6
Extension Base

Operands

  • RS
    Source

Example

mttar r3

Registers Altered

TAR

Related

More in Base

Reference

Description

Move To Target Address Register. Extended mnemonic for MTSPR (mtspr 815,RS). Copies register RS into the Target Address Register (TAR).

Operation

TAR ← RS

Programming Note

The mttar instruction is used to copy a value from a general-purpose register (RS) into the Target Address Register (TAR). This register is typically used in conjunction with address translation operations. Ensure that the source register contains the correct address value before executing this instruction, as incorrect values can lead to unpredictable behavior or exceptions. This operation requires supervisor privilege level.