Microsoft DirectX 8.0 (C++)

mov

Move contents of the source into the destination.

mov   vDest, vSrc0

Registers

vDest
Destination register, holding the result of the operation.
vSrc0
Source register, specifying the input argument.

Operation

The following code fragment shows the operations performed by the mov instruction to write a result to the destination.

    SetDestReg();
    SetSrcReg(0);

    if( m_pDest == m_reg.m_a )
    {
        float p = (float)floor(m_Source[0].x);
        *(int*)&m_pDest->x = FTOI(p);
    }
    else
    {
        m_TmpReg = m_Source[0];
        WriteResult();
    }

Remarks

The following examples illustrate how the mov instruction might be used.

mov r1, v2
mov r1.xy, r2.zw