|Able to break out of the loop in some cases|
Message #23 Posted by Seth Morabito on 15 Oct 2007, 4:20 p.m.,
in response to message #22 by John Wasilewski
The plot thickens!
I have run the program many more times, and discovered that after entering a value for C,T BAR SIZES, if you step through the code even a little bit before pressing R/S, you can later break out of the infinite loop!! If you do NOT step through the program, you can not later break out of the infinite loop.
Here is exactly what I did, in the following order.
1. Keyed in the program. I got LN=1616,CK=D170 [but these figures will probably not be useful to anyone, because of a known and acknowledged bug in checksum calculation]. I have no other programs in memory.
2. Before each run, I performed the following operations, in order:
a) CLEAR VARS
b) CLEAR STACK
c) DISPLAY FIX 4
c) GTO ..
3. Start the program with XEQ B ENTER
4. I used the following inputs when prompted.
H?= 332 [suggested value was 443. 332 is 75% of suggested.]
B?= 275 [suggested value was 366. 275 is 75% of suggested.]
5. When prompted by C,T BAR SIZES, I pressed ENTER
6. I entered 20, then pressed DOWN ARROW to step.
7. I stepped through the code a few times. Some of the lines I stepped through...
B265 STO O
B267 STO Q
B268 STO L
B269 RCL H
B270 RCL C
B272 RCL O
8. I took a deep breath and pressed R/S
9. The program got stuck in an infinite loop, displaying "NEXT BAR" and "RUNNING" over and over.
10. I pressed R/S again, and this time the program halted!
I was able to repeat these ten steps many times. Each time I was able to break out of the loop just by pressing R/S.
Alas, for the final try, instead of stepping through the program in step (7), I just pressed R/S. As expected, this time I was NOT able to break out of the infinite loop.
There seems to be some problem caused by fetching and executing the program steps. Possibly entering into the debugging environment by pressing the down arrow sets up or clears some environment that is not otherwise set up, and allows R/S to break out of the program.
Very frustrating. But I'm entranced by this problem, so I'll keep looking.
Edited: 15 Oct 2007, 4:23 p.m.