Implemented rst_p and used for mode1 interrupt