
while(P0^7==1);
        {...}

(or)

while( (P0^7 & 0xF0) == 1);
        {...}

(or) anything else?
