The Museum of HP Calculators

HP Forum Archive 16

[ Return to Index | Top of Index ]

HP-41: Automatic copy of several programs from a module
Message #1 Posted by Geir Isene on 27 Dec 2006, 6:29 p.m.

This is what I want to achieve:

In a program, copy 5 programs from ROM to RAM.

How do I do this the best way?

      
Re: HP-41: Automatic copy of several programs from a module
Message #2 Posted by Raymond Del Tondo on 27 Dec 2006, 8:22 p.m.,
in response to message #1 by Geir Isene

Hi,

the hard (but maybe easier) way would be to write a ML function
which calls COPY (with suitable params) and then the packing routine.
Then call these functions from within your program.

Best would be if your calling program resides in ROM,
to minimze program pointer conflicts;-)

Of course your program has to save the current PC before the COPY operations,
and restore it afterwards.

HTH

Raymond

            
Re: HP-41: Automatic copy of several programs from a module
Message #3 Posted by Geir Isene on 28 Dec 2006, 3:08 a.m.,
in response to message #2 by Raymond Del Tondo

No easier way (synthetics)?

I didn't find any pack-program in the PPC. It would be nice to do something like this, though:

"UAC"
PCOPY
PPACK
"REM
PCOPY
PPACK
... etc.

But not possible :(

                  
Re: HP-41: Automatic copy of several programs from a module
Message #4 Posted by Raymond Del Tondo on 29 Dec 2006, 12:25 a.m.,
in response to message #3 by Geir Isene

Hi,

I'm afraid Synthetic programming won't help here.

However I'm planning s.t. like this in ML for the next OS/X plug-in;-)

Meanwhile, you could also try to simulate the functionality if you have a CCD module.
The CCD module offers functions to write (program name) strings into any register,
and has the ability to jump to every ROM location...

Regards

Raymond


[ Return to Index | Top of Index ]

Go back to the main exhibit hall