clear register before using setne or setg