I know there is a way... but can't find it in a search and can't remember how to do it...

I would like to insert a three-bit number into a byte or word such as...

Put 110 into byte xxxxxxx and get xxxx110x.

I know how to access single bits, low and highbytes... etc. But I need to REPLACE several bits in a byte in one command.

Thank you,

Ross