5355 IF XMA>XD THEN XD=XMA