(mess) pc9801: adjust mask if necessary (nw)