I think this should work but I didnt try it. I'll let you fill in between the ...
newVariable=(intNo1<<7) | (intNo2<<6)| (inNo3<<5 )| ... | intNo8<<0);
I think this should work but I didnt try it. I'll let you fill in between the ...
newVariable=(intNo1<<7) | (intNo2<<6)| (inNo3<<5 )| ... | intNo8<<0);