wow no response still.
Well here's a simulation my friend made, this for scrolling the screen 1 pixel every frame. He used mod's congruence relation with xor.
http://spreadsheets.google.com/ccc?key=p4reC9ZXgslCBM2E6P_6XBQ
"the white numbers are the values the switch operation evaluates to on the respective frame. don't worry about the mod columns, they are there because gogle spreadsheet doesn't give me a bitwise Xor, and I am too out of practice to find a concise form. there are 4 sets of initial seeds, that is just 1 of them; each sheet of the spreadsheet has one of the 4 sets of initial values. if you want to add columns, copy the preceding mod and frame column and change the number in the orange box of the mod column:
if the preceding frame column had a 4 in it ---> 3
if the preceding frame column had a 3 in it ---> -3
if the preceding frame column had a 1 in it ---> 1
if the preceding frame column had a 2 in it ---> -1"
This close friend of mine is leaving for iraq tomorow, please wish him well.