Post Reply 
Huge Program Space on HP-12C Platinum
01-21-2020, 11:25 AM (This post was last modified: 01-22-2020 12:20 AM by Gamo.)
Post: #1
Huge Program Space on HP-12C Platinum
Since the HP-12C included very big program space.

There must be a way to point to specific programs to use in
an easy to navigate ways rather than remembering the Line Number
for each of different programs.

The HP-11C or 15C got the labels A to E where user can put each
programs to destinated label and if user need more than 5 programs then
the [GSB] 1, 2, 3 etc is handy too.

For HP-12C Platinum I managed to put 10 program and use up
380 program steps. These programs can be call up by the program#
If user need to use program #4 simply press
[PRGM] 4 [R/S] display 4 and this program can be use repeatedly.

Here is the sample program.

https://www.hpmuseum.org/forum/thread-14374.html

The program routine to create labels: Example routine for Two Programs
001 1
002 -
003 X=0
004 GTO xxx // goto line# for Program #1
005 1
006 -
007 X=0
008 GTO xxx // goto line# for Program #2
009 GTO xxx // This canbe added later when need to add more programs by the last line of Program #2

Gamo 1/2020
Find all posts by this user
Quote this message in a reply
06-06-2020, 04:23 PM
Post: #2
RE: Huge Program Space on HP-12C Platinum
(01-21-2020 11:25 AM)Gamo Wrote:  Since the HP-12C included very big program space.

There must be a way to point to specific programs to use in
an easy to navigate ways rather than remembering the Line Number
for each of different programs.

Gamo 1/2020

Hi Gamo,

Just for information, i'm using an other way to point more of a single program in the huge memory of the HP12C+
This is what i propose you, like i have done in the program memory of mine

In the mind to use 5 programs :
#1 is Biorhythm
#2 is Yam's (Yathzee)
#3 is Mastermind
#4 is Memory game
#5 is Some digits for a sum (Integer Partition)

I have prepare :
Code:

001 - g GTO 006
002 - g GTO 090
003 - g GTO 181
004 - g GTO 279
005 - g GTO 343
006 - This is the beginning of the program of biorhythm calculations (#1)
etc...
090 - This is the beginning of the program of Yam's (#2)
etc...
etc...
343 - This is the beginning of the program #5

As example, just before using the code breaker program (Mastermind) i need to make g GTO 003 on the keyboard of my 12C+ and so R/S
Of course, i have to remember the place (order #1, #2, ... or #5) of each program in the list before keying in g GTO 001, g GTO 002 ... or g GTO 005 and R/S

Note that all the original GTO in use in each program have to be shifted to remain in their own line repository
(I mean : for the program #1, each GTO nnn is GTO nnn+5; for the #2 you have to shift with nnn+89, etc..., when you enter your programs)

Keep you healthy
Find all posts by this user
Quote this message in a reply
06-07-2020, 05:04 AM
Post: #3
RE: Huge Program Space on HP-12C Platinum
Nihotte(lma) thanks for the review.

Good idea too just by assign each program to the begining of the
program lines this even shorten the program line usage.

Thank You

Gamo
Find all posts by this user
Quote this message in a reply
06-07-2020, 12:45 PM
Post: #4
RE: Huge Program Space on HP-12C Platinum
This approach of uses GTOs in the beginning of the program is interesting. What happens if you edit ANY of these programs by adding or deleting one or more steps? Does the system renumber GTOs like in the HP-35S? I am not sure it does, and if so, the programmer will face a major headache!!!

Namir
Find all posts by this user
Quote this message in a reply
06-07-2020, 02:56 PM
Post: #5
RE: Huge Program Space on HP-12C Platinum
No other line-addressed HP model renumbers program step numbers other than the HP-35S... I know there are issues with how the 35S did it, but I think it is still a big improvement over doing nothing. My 2 cents.
Find all posts by this user
Quote this message in a reply
06-08-2020, 07:55 AM
Post: #6
RE: Huge Program Space on HP-12C Platinum
(06-07-2020 12:45 PM)Namir Wrote:  What happens if you edit ANY of these programs by adding or deleting one or more steps? Does the system renumber GTOs like in the HP-35S?

This is the major disadvantage of 12Cs. Of course you can edit your program - if you wrote the whole again. Of course all GTOs must to modify by hand. If you want to shorten the program, you can use PSE instead of full rewrite, but this will slows down the running, unfortunately no NOP operation (which is very useful if the program is not allocated automatically) or you can use natural commands (eg. roll up and roll down, 1 + 1 -, etc...). If you want to insert more lines you can use GTOs as described in the manual.

The above is really frustrating, but the greatest problem, the memory is not freed-up, if you not use it. I mean there is no physical end of the program. Eg. if you wrote a solver and your equation is too long, the registers automatically converted to program steps. When you overwrite your equation and the new equation is shorter, not required to convert registers to program steps, you can not bring back that register's memory space.

So this is same as on Voyager 1 and 2: Wrote the whole stuff as short as possible, as final as possible and push it into the limited memory, because during the mission there is very limited possibility to modify anything.

Csaba
Find all posts by this user
Quote this message in a reply
06-08-2020, 12:23 PM
Post: #7
RE: Huge Program Space on HP-12C Platinum
That right I rarely edit my 12C program.
So it is good to make sure that each program writing
for the HP-10C or 12C is final, if serveral or
more program is use especially the 10 program
I did on the HP-12C Platinum.

It is convinience to use when assign it to specific program# listing.

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




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