Re: HP-41 MCODE Programming Message #4 Posted by Jeff Davis on 14 Oct 2007, 11:58 a.m., in response to message #3 by Doug
Thanks for all who responded. I am trying to write a MCODE program to calculate the inductance of a coil. There are three inputs, Coil Length, Coil Diameter and Number of turns on the coil. I have tried using some of the technics in the MCODE for Beginners that are used on the OCT-HEX and HEX-OCT programs. The best I can get is the Prompt to Flash in the display but it does not R/S. Below is the listing for this. I have found the PROMPT function in the VASM and it uses the XPROMP routine which prompts and R/S. I will be trying this this evening to see if this works. My goal would be to load directly to C and not have to use READ 3(x) to get the data to C. I would like the program to R/S with , for example, Coil Lg.? in the display. Then accept the number entered like 1.500" or 1.750" similar to the User Code PROMPT.
Any way, thanks for responding and any suggestions would be greatly appreciated. FUNCTION 00C4 ... ... ... "IND1"
F 00C4 345 040 ... ?NC XQ 10D1
F 00C6 3C1 0B0 ... ?NC XQ 2CF0
F 00C8 003 ... ... JNC +00 00C8
F 00C9 00F ... ... JC +01 00CA
F 00CA 009 00C ... ?NC XQ 0302
F 00CC 020 ... ... XQ->GO
F 00CD 00C ... ... ?FSET 3
F 00CE 007 ... ... JC +00 00CE
F 00CF 03F ... ... JC +07 00D6
F 00D0 220 ... ... C=KEY
F 00D1 115 038 ... ?NC XQ 0E45
F 00D3 3E0 ... ... RTN
F 00D4 220 ... ... C=KEY
F 00D5 3DD 0AC ... ?NC XQ 2BF7
F 00D7 149 024 ... ?NC XQ 0952
F 00D9 375 03C ... ?NC XQ 0FDD
F 00DB 1FA ... ... C=C+C M
F 00DC 38C ... ... ?FSET 0
F 00DD 360 ... ... ?C_RTN
F 00DE 268 ... ... WRIT ( 9)Q
F 00DF 278 ... ... READ ( 9)Q
F 00E0 0E8 ... ... WRIT ( 3)X
Thanks Meindert for this great Disassembler in the Mldl2k software!
|