Microsoft DirectX 8.0 (Visual Basic) |
Move contents of the source into the destination.
mov vDest, vSrc0
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(); }
The following examples illustrate how the mov instruction might be used.
mov r1, v2 mov r1.xy, r2.zw