(mess) pc9801: more refactor (nw)