Well, I'm a serious newbie myself, but I *think* you need to use the Bitwise Operator "&", not the logical operator "AND".
Try:
outdata = indata & %11110000
Edit: yeah, I just checked pgs 39 and 40 of the PBP manual (printed version) and it describes the difference between "&" and "AND". You definitely want "&".
steve




Bookmarks