Interate all hex codes and create masks