Mode Ports

Hi!
In Hello example for 8051 by MCB900 in main() there is:
P2M1=0;
P1M1=0;

Is it ok??
Im reading the datasheet of de microcontroller and i dont understand it, because to configurate the port is using PxM1 and PxM2. Then why is writed these (bold text)??
Thanks

More questions in this forum