add register def and modify CHKSW