5350 IF XMI<XC THEN XC=XMI