Um, I think there's something funky going on with your script. Here's the samples reformatted:

Code:
aaaaaa           &b7; U P &b1; &95; &0b;   56 f4 ef 50 34 aa
"aaaaa           x    U P &b1; &95; &0b;   1c 33 ef 50 34 aa


It seems that the actual output differs only in the first character. But your offset calculations show that the first two letters are different.

In other words, 'U' in the second position should always return the same offset, but it's not.

Edit: It may be easier to just avoid double-quotes for now.


Edited by wfaulk (24/10/2011 17:19)
_________________________
Bitt Faulk