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-07-2014, 07:57 AM
Post: #15
RE: Keystroke Programming: Labels vs. Line Numbers
(11-06-2014 09:47 PM)Paul Dale Wrote:  If I ever want a program with BACK/SKIP, which is rare, I use the assembler to generate the code for me.

Things are a little different for ROM based programs. We call it XROM in the WP 34S. Since ROM based code doesn't change, we can precompute all jump targets. Furthermore, SKIP and BACK in XROM use absolute distances, not step counts. Of course no one ever performs these calculations manually. It's the assembler as part of the build process that does all the tedious counting for us.

Marcus von Cube
Wehrheim, Germany
http://www.mvcsys.de
http://wp34s.sf.net
http://mvcsys.de/doc/basic-compare.html
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 - Marcus von Cube - 11-07-2014 07:57 AM



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