Longs and bitwise stuff.

BlitzMax Forums/BlitzMax Beginners Area/Longs and bitwise stuff.

I've got an array of Longs with a typical value of $20FFFFFF00004000. I want to be able to change the first byte (the $20) to any arbitrary value, leaving all other bits unchanged.

I'm having a late-night brain fart and cannot think how to do it. I'm going to bed now because I'm obviously dumb and tired :)

If anyone can point out a way of achieving this simple task, I would be eternally grateful :D