The Museum of HP Calculators

HP Forum Archive 13

[ Return to Index | Top of Index ]

QPI for the HP-42S
Message #1 Posted by Erik Ehrling (Sweden) on 31 Aug 2003, 3:58 p.m.

This is just a short note to tell that I have just uploaded the latest version of QPI for the HP-42S at the following URL:

http://w1.322.telia.com/~u32220482/qpi42s.html

Best regards, Erik Ehrling (Sweden)

      
Off Topic: Program Listing Font
Message #2 Posted by Juergen (CH) on 1 Sept 2003, 3:58 a.m.,
in response to message #1 by Erik Ehrling (Sweden)

Where did you get the font you used for the program listing?

Regards, Juergen

            
Re: Off Topic: Program Listing Font
Message #3 Posted by Erik Ehrling (Sweden) on 2 Sept 2003, 1:54 a.m.,
in response to message #2 by Juergen (CH)

Hi Juergen!

The listing is just made up of a series of screen-shots from Emu42 (so in a sense the underlying font is the real HP-42S font, although it is not made using a font per se), however if anyone could recommend a good program to construct a font from bitmaps it would not be much work to convert it into a real font.

Best regards! /Erik

            
Re: Off Topic: Program Listing Font
Message #4 Posted by Gordon Dyer on 2 Sept 2003, 4:48 p.m.,
in response to message #2 by Juergen (CH)

Look in here for some nice fonts produced by Luiz:
http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=286

      
Re: QPI for the HP-42S
Message #5 Posted by Werner Huysegoms on 2 Sept 2003, 2:56 a.m.,
in response to message #1 by Erik Ehrling (Sweden)

Lines 381 and 383 should not be there; they cannot be correct. 

RCL "T_QPI" RCL "Z_QPI" RCL "Y_QPI" RCL "X_QPI"

fills the stack

Cheers, Werner

            
Program Encapsulation on a HP-42S (Was: Re: QPI for the HP-42S)
Message #6 Posted by Erik Ehrling (Sweden) on 2 Sept 2003, 1:37 p.m.,
in response to message #5 by Werner Huysegoms

Hi Werner!

Certainly the lines should be there! The lines 2-12 at the start of the program stores the contents of the stack (and all registers). The corresponding lines 376-391 at the end of the program restores the stack (and all registers). This way program encapsulation is achieved on the HP-42S! Further, this allows you to run QPI in the middle of a calculation and then continue the calculation after QPI has run!

Best regards, Erik Ehrling (Sweden)

                  
Re: Program Encapsulation on a HP-42S (Was: Re: QPI for the HP-42S)
Message #7 Posted by Victor Koechli on 2 Sept 2003, 8:04 p.m.,
in response to message #6 by Erik Ehrling (Sweden)

No, Werner is right, I've noticed this too. The lines 381 and 383 are too much. Consider: If you do

RCL "T_QPI"
STO ST_T

you will restore the saved T register contents directly to T. But if you now execute

RCL "Z_QPI"

the stack is lifted and the contents of T are lost. Instead you should just do

RCL "T_QPI"
RCL "Z_QPI"
RCL "Y_QPI"
RCL "X_QPI"

as Werner suggests, and the entire stack will be restored.

Cheers, Victor

                        
Oh yes, they are redundant! (Was: Program Encapsulation on a HP-42S (Was: Re: QPI for the HP-42S))
Message #8 Posted by Erik Ehrling (Sweden) on 3 Sept 2003, 2:10 p.m.,
in response to message #7 by Victor Koechli

Oh yes! The lines are redundant (even though the program works perfectly with the lines in place as well...). Thanks!

Regards, Erik


[ Return to Index | Top of Index ]

Go back to the main exhibit hall