Program

Programs for HP-41

Program

Postby nvogen@msn.com » Thu Nov 21, 2013 2:07 am

I have a program which works fine except that it starts out "REG 00. The second step is "01 SECT PROP" with the little T. This is the real name of the program. How do I remove the REG 00?
nvogen@msn.com
..
..
 
Posts: 4
Joined: Thu Nov 21, 2013 1:59 am

Re: Program

Postby Garth » Thu Nov 21, 2013 6:06 am

I use my 41 every day but with programs I wrote long ago, and I go long periods without writing any new programs, so I wonder if I'm forgetting something. I don't know about the REG 00. That's something I would only expect to see after a GTO... <PGRGM> if there's no program memory left for a new program. As for the "01 SECT PROP" with the little T, that's not a label, but a string to put in the Alpha register when the program runs. The name of the program has to be a global label, and then it would say 01 LBL SECT PROP (note the "LBL") with the little raised T before the S, and you can't get labels that long (more than 7 characters) without synthetic programming.

Anyone else? What am I forgetting?
Garth
Moderator
Moderator
 
Posts: 290
Joined: Tue Jan 20, 2009 1:31 am

Re: Program

Postby nvogen@msn.com » Thu Nov 21, 2013 4:12 pm

I misspoke yesterday. The program starts with "00 REG 22".
nvogen@msn.com
..
..
 
Posts: 4
Joined: Thu Nov 21, 2013 1:59 am

Re: Program

Postby nvogen@msn.com » Thu Nov 21, 2013 5:04 pm

I changed the sect prop to lbl sect. Now it appears in catalog 1. The 00 REG 22 is still there but doesn't seem to harm anythhing.
nvogen@msn.com
..
..
 
Posts: 4
Joined: Thu Nov 21, 2013 1:59 am

Re: Program

Postby Garth » Thu Nov 21, 2013 6:53 pm

Do you have a 41cv? I think my friend's coconut 41cv did the REG 22 kind of thing. I have a halfnut 41cx which directly tells how many bytes a program takes. I think his cv required looking at the REG display to see approximately how much memory a program takes, and he had to divide the difference by 7 since there are 7 bytes in a register. I never had a cv or coconut though.
Garth
Moderator
Moderator
 
Posts: 290
Joined: Tue Jan 20, 2009 1:31 am

Re: Program

Postby nvogen@msn.com » Fri Nov 22, 2013 8:12 pm

I have a 41 CX. As far as I can tell the REG 22 does not affect my program. It is just annoying that I can't get rid of it.
nvogen@msn.com
..
..
 
Posts: 4
Joined: Thu Nov 21, 2013 1:59 am

Re: Program

Postby Joe Horn » Wed Dec 11, 2013 4:28 pm

You don't want to get rid of that 00 REG 22, because (1) you can't, (2) it's normal, and (3) it's useful.

00 REG nn -- that's what's always shown when you do any of the following in program mode:

• GTO . .
• Delete step 1 of any program
• Press backspace on the .END. when the current program is empty

The nn is the number of free registers in main memory, same as shown at the end of CAT 1. On a 41CX, MEMORY LOST / PRGM --> 00 REG 219, which means 219*7+4 = 1537 bytes available for programming. Coincidence: My PPC member number was 1537. :D
X<> M
-Joe-
User avatar
Joe Horn
...
...
 
Posts: 9
Joined: Thu Mar 05, 2009 12:29 am
Location: Silverado, California


Return to HP-41 Software

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron