mova - vs

Move data from a floating point register to the Address Register, a0.


mova dst, src




Vertex shader versions 1_1 2_0 2_x 2_sw 3_0 3_sw
mova x x x x x


Moves floating point data to an integer register. The values are converted from floating point using rounding to nearest.

The address register is the only destination register allowed.

The following code fragment shows the operations performed.

if(dest is an integer register)
    int intSrc = RoundToNearest(src);
    dest = intSrc;
    dest = src;

For versions 2_x and above, the address register is a component vector. Therefore, any write mask is allowed.

mova a0.xz, r0

Vertex Shader Instructions