Page 1 of 1

Program

PostPosted: Thu Nov 21, 2013 2:07 am
by nvogen@msn.com
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?

Re: Program

PostPosted: Thu Nov 21, 2013 6:06 am
by Garth
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?

Re: Program

PostPosted: Thu Nov 21, 2013 4:12 pm
by nvogen@msn.com
I misspoke yesterday. The program starts with "00 REG 22".

Re: Program

PostPosted: Thu Nov 21, 2013 5:04 pm
by nvogen@msn.com
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.

Re: Program

PostPosted: Thu Nov 21, 2013 6:53 pm
by Garth
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.

Re: Program

PostPosted: Fri Nov 22, 2013 8:12 pm
by nvogen@msn.com
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.

Re: Program

PostPosted: Wed Dec 11, 2013 4:28 pm
by Joe Horn
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