GoForSmoke:
After the interrupt occurrence the pushed registers are restored.
But when you screw with the system at that level during the interrupt it makes the use of goto look smart.OP, that half-baked road apple is a good route to a buggy mess that will have cross-effects as an added layer of unknowns to guess at what to try changing next.
Probably, so i will need to find a better solution for this, which is fine which is the reason i asked since i had no idea how it worked, Even from reading from the web page in your signature, which i did before i made the first post. I wasn't sure how they worked and therefor i asked here.
Does anyone have another idea then how to do this?
The code is gonna be used as control for water bottle rocket ramp . but due to safety reasons i need 2 buttons to be pressed for a certain amount of time and if those 2 buttons where to be released i need it to stop the firing sequence and start over when the buttons a pressed again. Also the idea was to have sound feedback while the buttons are pressed. like a bomb going off "- - - - -- -- -- --- ---- ---- -----------fires!" i have made it analog with logic gates and a binary counter but it takes to much space and if i decide to change the sound pattern i have to remake most if it every time.
i know how to do basic programming but i have no idea how to break out of a loop when one of the buttons are released and i thought that if i had the interrupt trigger on the button input that would be the best way to do so.