Re: HP49G Sysrpl help with recalling contents of pointers
- From: hans.milton@xxxxxxxxxx
- Date: 30 May 2007 05:49:19 -0700
On 28 Maj, 23:07, "Gjermund Skailand" <skaiguard-t...@xxxxxxxx> wrote:
Hi , I need some help me with recalling contents of ROM during runtime.
I wish to recall the contents of e.g. C%SIN (supported entry) to the stack
during runtime (in order to modify the composite ) and then use it.
E.g.
:: ' C%SIN recall? CDRCOMP EVAL ;
What would the magic word or procedure for recall? be on the hp49g?
I ask because
C%SIN decompiles to
:: PTR 0FEDA 2DUP %%COSH....;
Where PTR 0FEDA splits a C% (complex) into two extended reals.
In this case I already have two extended reals on the stack, and it would be
a waste of time and accuracy to make it a C% first.
Thanks on beforehand
Gjermund Skailand
PS in this particular case the below is a shorter version.
:: ' C%SIN recall? EvalNoCheck ;
One way could be to use Nosy to get the ROM
contents as a string of source code, and then
compile by calling MASD.
Create following as a library routine, lets call it
ROM->CODE:
::
x->A xGETNAME
xNosyRPL$
SEP$NL
DROP
xASM
;
Your example then:
:: ' C%SIN xROM->CODE EvalNoCK ;
.
- Follow-Ups:
- Re: HP49G Sysrpl help with recalling contents of pointers
- From: Gjermund Skailand
- Re: HP49G Sysrpl help with recalling contents of pointers
- References:
- HP49G Sysrpl help with recalling contents of pointers
- From: Gjermund Skailand
- HP49G Sysrpl help with recalling contents of pointers
- Prev by Date: Re: Manjo's OFIMAGE
- Next by Date: Re: The HP 35S has arrived...
- Previous by thread: HP49G Sysrpl help with recalling contents of pointers
- Next by thread: Re: HP49G Sysrpl help with recalling contents of pointers
- Index(es):
Relevant Pages
|