Research & Development

SPU Shuffle Mask Helper

Posted on Mar 24, 2008, 12:00 pm
here’s a small snippet of code which calculates shuffle-masks using the
standard convention we use (which came from ICE / SCEE-ATG)
 
here’s the brief details of the naming convention
(see shuffles.pdf for more info):
 
characters A-P specify bytes 0-15
words use A-D
shorts use A-H
bytes use A-P
upper case characters pull from quadword 1
lower case from quadword 2
special characters 0 -> 0x00, X or x -> 0xff, 8 -> 0x80
 
the 16-byte mask is printed to the tty and also copied to the windows clipboard
 
 
0

0 COMMENTS

SHARE
BE THE FIRST TO LIKE THIS     LIKE     COMMENT

LEAVE A COMMENT



You must be logged in to add a comment
LATEST ARTICLES