Welcome to the forum.
First thing I see in the code "main-loop" it just stops, no return, goto or even a THEN to go with the IF.
Second thing. If the only place you are trying this is on a simulator, good luck.
Use a bread board for your simulator.
Bookmarks