41MCODE: IND/ST/MATH in prompting  Printable Version + HP Forums (https://archived.hpcalc.org/museumforum) + Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum1.html) + Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum2.html) + Thread: 41MCODE: IND/ST/MATH in prompting (/thread156291.html) 
41MCODE: IND/ST/MATH in prompting  Ángel Martin  09142009 Greetings, I'm looking for information on how's the coding done for prompting functions using the extra options, like IND, ST, IND_ST, and MATH. It's easy for the standard and simple IND cases, but how about the rest? This should be well know to the community but I can't trace the information anywhere  got no VASM listings myself :( 1. Standard: reg# address in S&X field of A
2a. IND: (reg# + 80) in S&X field of A 3. ST (X/Y/Z/T/L...)
5a. MATH (+//*//)
Cheers,
Edited: 14 Sept 2009, 5:27 a.m.
Re: 41MCODE: IND/ST/MATH in prompting  Meindert Kuipers  09142009 Angel,
The VASM listings are a must, and they are on the various DVD's.
Meindert
Re: 41MCODE: IND/ST/MATH in prompting  Ángel Martin  09142009 Thanks Meindert, sorry I didn' t explain it better but the issue is not with the coding of the function NAMES (using the leftmost bits of the first two function name bytes as per the table you attached) but with the way the actual values are coded when used. For instance. I have not figured out where is the input "IND ST Y" stored when using such a prompt. Not in the S&X field of the A register, which only "knows" about the IND part but not about the ST... mystery or plain ignorance on my part? Likely the latter...
Best,
Re: 41MCODE: IND/ST/MATH in prompting  Meindert Kuipers  09152009 That will be more difficult, you will have to look for examples using the various types of prompting. If you have a copy (also on the DVD's) of Ken Emery's famous HP41 M Code For Beginners, there is a nice introduction on page 135 and on which should get you started.
Meindert
Re: 41MCODE: IND/ST/MATH in prompting  Eric Smith  09152009 Is the A S&X field formatted as a postfix byte? If so, isn't the "ST Y" implicit in the postfix value? If not, how are you finding that "IND" is indicated?
If I had to make a wildass guess, I'd think that any additional information from prompting might be stored in the "Q" status register. That's where alpha prompting goes, but maybe numeric prompting affects it also.
Re: 41MCODE: IND/ST/MATH in prompting  Håkan Thörngren  09152009 A stack argument is stored in the postfix byte of the function, just like numeric registers. Low numbers are for data registers, while higher numbers (112127) are for stack / status registers. The quick reference card for synthetic programming shows the coding, for example 112 is T register, add 128 for IND T.
Math STOre functions are encoded in the prefix byte, postfix bytes works the same as all others.
