39.4.3.1 Register Naming

A set of 15 registers is defined and accessible through the use of the load and store architecture.

Table 39-26. Visible Registers
ValueNameDescription
0GFX2D_PA0Surface 0 Physical Address Register
1GFX2D_PITCH0Surface 0 Pitch Register
2GFX2D_CFG0Surface 0 Configuration Register
3GFX2D_PA1Surface 1 Physical Address Register
4GFX2D_PITCH1Surface 1 Pitch Register
5GFX2D_CFG1Surface 1 Configuration Register
6GFX2D_PA2Surface 2 Physical Address Register
7GFX2D_PITCH2Surface 2 Pitch Register
8GFX2D_CFG2Surface 2 Configuration Register
9GFX2D_PA3Surface 3 Physical Address Register
10GPREG0General-Purpose Register 0
11GPREG1General-Purpose Register 1
12GPREG2General-Purpose Register 2
13GPREG3General-Purpose Register 3
14GPREG4General-Purpose Register 4
15GPREG5General-Purpose Register 5

General-purpose registers are generic registers. They can hold:

  • an address,
  • a constant color for a FILL or BLEND operation,
  • a constant alpha value for a BLEND, or
  • a user-defined 32-bit data for a STORE operation.
    Table 39-27. General-Purpose Registers
    Operation/InstructionGeneral-Purpose Register
    FILLThe register holds the 32-bit fill color pattern when the FILL arguments are less than 2. In that case, the color is defined by the REG field of the FILL instruction.
    BLENDThe register holds the constant 32-bit color (Ac, Rc, Gc, Bc). It can be used for CONSTANT_ALPHA, CONSTANT_ALPHA parameters.
    STRThe store operation requires a valid address defined by the REGAD field register index, and a data defined by the REG field register index. The general-purpose register can hold a 32-bit address or data.
    LDRThe LDR instruction can load a general-purpose register.