Thanks, a "/256" got accidentally dropped when I posted my code. Fixed.
In reply to Re^3: 3-byte representation by ikegami in thread 3-byte representation by gerleu