mcs51 set memory, check if addr is psw at same time