Poll: Which type of branching do you prefer?
Line Numbers (i.e. GTO 150)
Labels (i.e. LBL A, GTO A)
Both
Neither
[Show Results]
 
Post Reply 
Keystroke Programming: Labels vs. Line Numbers
11-06-2014, 09:47 PM
Post: #14
RE: Keystroke Programming: Labels vs. Line Numbers
(11-06-2014 09:28 PM)patrice Wrote:  Would be nice to have the same functionality on the wp-34s

The 34S has variable length instructions so we can't just jump to an absolute address -- we'd have to search for the address from the beginning of program memory. This would almost always be slower than using a label.

Converting to BACK/SKIP is also a non-gain mostly. SKIP would be no faster since we're parsing each instruction skipped over. BACK might be a little faster but, I doubt it would be a noticeable difference in practice due to all the other overheads.

If you are so wedded to the idea of this conversion, download the 34S source code and implement it yourself Smile I am not going to since I don't see any utility in this operation. If I ever want a program with BACK/SKIP, which is rare, I use the assembler to generate the code for me.


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


Messages In This Thread
RE: Keystroke Programming: Labels vs. Line Numbers - Paul Dale - 11-06-2014 09:47 PM



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