crackerjack
 Senior Member
 Joined: 11/07/2011 Location: AustraliaPosts: 164 |
| Posted: 04:54am 08 Mar 2012 |
|
|
|
Apologies - another pair of FF's are required on the end of the Left Shift operations in my post.
The AND'ing is not strictly necessary, but does force the truncation of any bits that may have been in, for example, byte1 if byte1 was not "byte-sized" to begin with. |