Microsoft DirectX 8.0 (C++) |
Loads the difference of the two colors in the source operands.
sub tDest, tSrc0, tSrc1
This instruction performs the subtraction based on the following formula.
tDest = tSrc0 - tSrc1
The following example shows how this instruction might be used.
sub d, s1, s2 ; difference