Accessing several bits together in a byte or word...
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
Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!
I like that! :-)
Bookmarks