HP-41 CX MCODE Prompting


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.



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.



Possibly Related Threads...
Thread Author Replies Views Last Post
  HP-41(CL): The easiest way to transfer FOCAL programs from a Linux PC to the HP-41 Geir Isene 13 1,003 12-05-2013, 02:40 AM
Last Post: Hans Brueggemann
  HP-41 MCODE: The Last Function - at last! Ángel Martin 0 209 11-08-2013, 05:11 AM
Last Post: Ángel Martin
  41-MCODE: Auto XEQ+ALPHA possible? Ángel Martin 5 422 05-29-2013, 06:15 AM
Last Post: Ángel Martin
  HP 41 Mcode related Questions Michael Fehlhammer 4 346 05-10-2013, 07:09 PM
Last Post: Michael Fehlhammer
  Trading TI Nspire CX CAS for HP Prime Justin Sloan (Honolulu) 2 232 05-09-2013, 04:22 AM
Last Post: Chris Smith
  HP 41 CX Celso Cipolato 2 239 09-30-2012, 06:38 PM
Last Post: Thomas Klemm
  41-MCODE: Breaking the FAT barrier. Ángel Martin 0 171 09-03-2012, 06:31 AM
Last Post: Ángel Martin
  Killed my 41-CX Halfnut aj04062 7 454 07-10-2012, 07:47 PM
Last Post: Luiz C. Vieira (Brazil)
  41-MCODE: Dr. Jekyll & Mr. Hyde Ángel Martin 9 573 07-09-2012, 09:41 AM
Last Post: Monte Dalrymple
  HP41C: Factorial (kind of) in MCODE Frido Bohn 7 480 05-26-2012, 09:18 AM
Last Post: Frido Bohn

Forum Jump: