The ideia in doing the software reset itīs that:
I have a "security command" and when this contact is closed the circuit workīs normally, but when the contact opens I donīt want that the circuit workīs, but when the contact closes again all my registers goes like it seems we remove the power, like it was the first time we were running the program...

What Iīm thinking to do is modify the value on the registers that I've modified and put them at zero or to the value that had at the beginning!