The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
35s label-less programming - so close yet so far
10-10-2019, 09:39 PM (This post was last modified: 10-11-2019 01:29 PM by David Hayden.)
Post: #1
35s label-less programming - so close yet so far
[ Edited to say GTO/XEQ lines are NOT adjusted properly. Dang - the one word I skipped is the key to the entire post! Thanks ijabbott for pointing out my error.]

The 35s GTO and XEQ instruction lets you go to any line number within a label. Whenever you insert or delete a program line, the calculator is supposed to adjust the GTO & XEQ instructions accordingly. If you delete the target of a GTO/XEQ, the GTO/XEQ remains unchanged, meaning that the new target is the line after the deleted line, which now occupies the deleted line's former spot.

If this worked properly, then label-less programming would be easy and pretty cool:
  • write your code using labels A-Z as you would on many other RPN calcs.
  • When you're program works, just delete the LBL lines! GTO/XEQ instructions that went to the label would now go to the instruction that followed it.
Alas, there's a known bug: if you delete a LBL line, the GTO/XEQ lines are not adjusted properly.

Sigh. This would have been very cool if it worked right. You could just reserve a bunch of labels for development work and delete them when your program is okay.

So close, yet so far.

Dave
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
35s label-less programming - so close yet so far - David Hayden - 10-10-2019 09:39 PM



User(s) browsing this thread: 5 Guest(s)