So I got bored, and was trying to make something for this topic, and I discovered this kind of odd bug.
when I run this:

Code:
:0→C
:0→L
:0→T
:ClrDraw
:RecallPic 1
:For(B,0,94)
:If C=pxl-test(0,B)
:Then
:L+1→L
:Else
:T+1→T
:L→L1(T)
:1→L
:End
:End

the For( loop only loops once. I am not sure if this happens in all OS's, but I know it does not happen in OS 2.53. This is unlikely, but it may be some side effects of some patches that BrandonW applied to the OS to keep the calculator overclocked, but I seriously doubt it. I have a feeling that the end of the Then is not parsing the End correctly and exiting early.

Edit: I think that this never would have happened in a released OS. I'm not sure what I was thinking, but this probably is a bug in the patch, or zStart.
I tested your program on jsTIfied with stock OS 1.19 and it ran all the loop iterations correctly (once I added the missing 1-C->C before the second to last line). I suspect that as you said, something that modified the OS broke it.
I think I figured it out. There is a D320 on page 78h which is actually contained in

Code:
cp D3
jr nz,411B

This got patched out, and must be part of the End parsing code. This caused it to glitch out and not find any more ends. When I get home tonight I will try to change this and see if it works.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement