Documentation has this for reading bits:

`EXPeBIT#`

where e is euler's e. Returns BIT# of EXP, where the high bit is bit0 and the low bit is bit 7. Example, 255e0 would return 1.

Writing to bits, you basically have to "or" the bit over; so

`e^(bit#) or EXP -> EXP`

As for resetting bits, I forget...

edit: here's a more optimizedish version by runer112;

http://ourl.ca/7815/138430