conversion of 12-bit ints to stream of hexadecimal