Opcode PAVGUSB


CPU: AMD-3D
Type of Instruction: User

Instruction: PAVGUSB dest,src

Description:

dest[7..0] <- (dest[7..0] + src[7..0]) / 2;
dest[15..8] <- (dest[15..8] + src[15..8]) / 2;
dest[23..16] <- (dest[23..16] + src[23..16]) / 2;
dest[31..24] <- (dest[31..24] + src[31..24]) / 2;
dest[39..32] <- (dest[39..32] + src[39..32]) / 2;
dest[47..40] <- (dest[47..40] + src[47..40]) / 2;
dest[55..48] <- (dest[55..48] + src[55..48]) / 2;
dest[63..56] <- (dest[63..56] + src[63..56]) / 2;

Note: so, saturation rounding:
(FFH + FFH) / 2 => FFh

Flags Affected: None

++++++++++++++++++++++++++++++++++
COP & Times:

PAVGUSB mm,mm/m64 0FH 0FH BFH Postbyte


Copyright by InternetNightmare 2005-2006