mov p1,#11111111b ;port 1 makes input port 
clr p1.0 ; port 1 zero bit clear 
etc ....