Post Reply 
Relabelling programs
08-02-2016, 06:11 PM (This post was last modified: 08-02-2016 06:16 PM by Dieter.)
Post: #2
RE: [HP-35s] Relabelling programs
(08-02-2016 12:23 PM)Marcio Wrote:  Create the following program on the 35s:

Code:
X001 LBL X
X002 4
X003 +
X004 GTO X002

XEQ the program, relabel it W and then XEQ it again. The 35s will not update the GTO instruction, which is understandable, but the problem is that it won't read or recognize the new label, the display will show NONEXISTENT.

I am not sure if I understand your problem. Enter the program X, then add a new LBL W as the second line, then delete the LBL X: everything works perfectly. The new program now is W001...W004 and the last line has correctly changed to GTO W002:

Code:
W001 LBL W
W002 4
W003 +
W004 GTO W002

However, if you remove the LBL X first, the GTO of course cannot be updated since the program now has no label at all – it does not know to which line 002 of which program it is supposed to jump. There is no GTO 0001 or GTO 0002 command. At this point the program looks like this:

Code:
0001 4
0002 +
0003 GTO X002

So the last line still reads GTO X002. As there is no such line, of course a NONEXISTENT must appear. After re-inserting a LBL W this GTO stays the way it is. How should the calculator know that some time ago this line belonged to some deleted LBL X ?

So I do not see a problem here.

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


Messages In This Thread
Relabelling programs - Marcio - 08-02-2016, 12:23 PM
RE: [HP-35s] Relabelling programs - Dieter - 08-02-2016 06:11 PM
RE: [HP-35s] Relabelling programs - Marcio - 08-02-2016, 06:19 PM
RE: [HP-35s] Relabelling programs - Dieter - 08-02-2016, 06:24 PM
RE: [HP-35s] Relabelling programs - Marcio - 08-02-2016, 06:30 PM
RE: [HP-35s] Relabelling programs - Dieter - 08-02-2016, 06:34 PM
RE: [HP-35s] Relabelling programs - Marcio - 08-02-2016, 06:40 PM



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