41-MCODE Question



#2

Does anyone know which OS rutine is called to display a mainframe function NAME while a key is being depressed?

I've located the equivalent for an XROM function, but it doesn't seem work for mainframe ones.

Appreciate any hints that save me long & tricky trace analysis!

Best,
'AM


#3

I think the routine that displays the name is PROMFC (05C7), but in the specific case you're asking about, it may be using the entry point PROMF2 (01D3), called from 0CD2 (a few lines after PARS75).

However, I haven't tried to verify any of this, so I could be completely wrong.

It doesn't look like PROMFC (or PROMF2) are usable as a subroutine from a ROM of your own, if that's what you're looking for.

Edited: 9 Oct 2011, 1:08 a.m.


#4

Quote:
I haven't tried to verify any of this, so I could be completely wrong.

If there's something I've learned in this forum is that you're *never* completely wrong, Eric. In fact you're absolutely correct, such is the routine I was looking for.

Quote:
It doesn't look like PROMFC (or PROMF2) are usable as a subroutine from a ROM of your own, if that's what you're looking for.

I'm not sure that I get your comment: I've been able to call it form my SandMath module without issues. All it needs is the entry point of the invoked function in A[S&X], for instance that'll be 07D for SDEV, 07C for MEAN, ect. This is reading from the FNCTBL to get the location of the function.

The reason I wanted to know about this is to implement a menu-like launcher, something akin to the 42-style (and later models).

Function "-PB/STS" in the SandMath now prompts a menu in the display, and gets into a [NEXT] partial entry sequence. The allowed choices are the five top keys, SHIFT, and BackArrow (as always). SHIFT toggles the displayed menu to another 5 choices, which in this case are:

Unshifted: SD: CV: R: LR: Y:

shifted: MN: LM: GD: C: P:

here SD is for Standard Deviation, and MN is for Mean - while the others are functions from the SandMath ROM.

Pressing any of the top keys will first display the function name (if the key is kept depressed), then leave the partial entry sequence and execute the corresponding function.

It all worked great, with the exception of displaying the function names for the mainframe MEAN and SDEV.

Now that's also working. Menus are very doable, the HP-41.5 is born :-)

Thanks again, 'AM


#5

Cool! I'm looking forward to trying the new version of SandMath.


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP-41 MCODE: The Last Function - at last! Ángel Martin 0 1,076 11-08-2013, 05:11 AM
Last Post: Ángel Martin
  Non-Prime question alert: Hp-41 and synthetic instructions Marcel Samek 11 4,130 11-04-2013, 09:31 PM
Last Post: sjthomas
  41-MCODE: Auto XEQ+ALPHA possible? Ángel Martin 5 2,014 05-29-2013, 06:15 AM
Last Post: Ángel Martin
  HP 41 Mcode related Questions Michael Fehlhammer 4 2,030 05-10-2013, 07:09 PM
Last Post: Michael Fehlhammer
  41-MCODE: Breaking the FAT barrier. Ángel Martin 0 936 09-03-2012, 06:31 AM
Last Post: Ángel Martin
  41-MCODE: Dr. Jekyll & Mr. Hyde Ángel Martin 9 3,069 07-09-2012, 09:41 AM
Last Post: Monte Dalrymple
  hp 41 series wire-wrapped connector question. Matt Kernal 3 1,697 06-19-2012, 01:48 AM
Last Post: Luiz C. Vieira (Brazil)
  HP41C: Factorial (kind of) in MCODE Frido Bohn 7 2,521 05-26-2012, 09:18 AM
Last Post: Frido Bohn
  41-MCODE: SOLVE & INTEG - 4k ROM Ángel Martin 9 2,836 04-19-2012, 05:29 AM
Last Post: fhub
  41-MCODE: a weekend challenge Ángel Martin 3 1,574 03-19-2012, 06:49 AM
Last Post: Mike (Stgt)

Forum Jump: