The Museum of HP Calculators

HP Forum Archive 18

[ Return to Index | Top of Index ]

HP-41 CX MCODE Prompting
Message #1 Posted by Jeff Davis on 26 Mar 2008, 4:54 p.m.

I have been searching for the correct method to create PROMPTís in MCODE. Obviously placing the text for the prompt into the ALPHA register then executing the XPROMPT entry does create the necessary prompt but I am confused if this is the correct method. I want to make a MCODE routine to prompt and calculate the inductance of a coil per the formula below. L(uH) = (d2 * n2)/(18d + 40l) Where d is coil diameter, n is the number of turns and l is the length of the coil. I need to be able to enter numbers of all kinds. (42,1.375 or .75) I have been reading the MCODE for beginners and Rabin Ezraís article regarding partial key sequences. It seems that with the NEXT, NEXT1, NEXT2, NEXT3 routines, one can have no underscore up to 4 underscores if EEX is pressed. Are these the best methods for prompting and then use PTEMP1 and PTEMP2 to cipher the numbers keyed and put them to the display? Any assistance in getting onto the correct track would be appreciated. Sorry for such a newbie MCODE question.

Edited: 26 Mar 2008, 5:16 p.m.

      
Re: HP-41 CX MCODE Prompting
Message #2 Posted by Raymond Del Tondo on 26 Mar 2008, 6:09 p.m.,
in response to message #1 by Jeff Davis

Hi,

I'd suggest using one of the freely available ML prompting routines, like HEXKB, HEXKN, or similar.
OTOH if you have a CCD module, you could simply use PMTA, PMTH, or PMTK.

HTH

Raymond


[ Return to Index | Top of Index ]

Go back to the main exhibit hall