HP Forums
HP-41: Automatic copy of several programs from a module - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP-41: Automatic copy of several programs from a module (/thread-104744.html)



HP-41: Automatic copy of several programs from a module - Geir Isene - 12-27-2006

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 - Raymond Del Tondo - 12-27-2006

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 - Geir Isene - 12-28-2006

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 - Raymond Del Tondo - 12-29-2006

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