41 MCODE Question - Page #4 Library


Greetings fellow MCODErs, here's a question for those still practicing the arcane arts..

ok, so I have successfully compiled a library of frequently-used MCODE routines and they are placed in a custom-made page#4. It is not a take-over rom, it just sits there and waits for the other modules to call upon it.

This Lib#4 can be configured in the ML2k, Clonix, and of course the CL - so not a problem. Also V41 supports it, so emulation is possible for trouble-shooting.

Works like a charm, finally all that unused space is put to work for a practical cause. BTW I have reserved addresses 0x4100 to 0x41FF for NoVRAM 64 settings, not a problem,

And the question, you ask? Well I though it'd be a nice touch if upon startup the library page announced itself with a friendly message, something like "#4 ON-LINE". Problem is page #4 does not offer polling points as interrupts, so no chance to use that method.

I tinkered a bit using the take-over address 0x4000, with the sole purpose of showing the message and then returning control back to the OS - but all my attempts have failed so far. It just keeps repeating the message upon every light-sleep event, duh.

Can anyone offer some suggestions? Sure the work-around is for another module to check for its presence and report on its behalf, but that's not so elegant.

Best, 'AM


I would say don't. I rather have my HP-41 come up as fast as possible, no need for a splash message.

If you really need to do it, I suggest you look at the return address on the stack. It will be different if you come from deep or light sleep. You should probably also call PACH11 (0x3f5).


I would say don't. I rather have my HP-41 come up as fast as possible, no need for a splash message.

Back in the early eighties, when I learned how to use the interrupts, I also made startup messages.

I thought it would be cool if the calc showed me some random greeting text upon turn-on.

But soon the messages became disturbing, and thus I removed the code.

If you can't live w/o a msg flash, I'd suggest to make it optional, using a flag or s.t. ;-)



No startup message please :-)


So you guys must love working with your Windoze systems, right? Coming to think about it, they do little more than putting up splash messages the whole time...

I've changed the approach and now it's only a warning message when the library is NOT on-line - done by the other modules that use it, of course.

Eric's reminder of the disabled printer ROM is timely and important: that would create a conflict, so it's up to the user not to let that happen.


Warning: using page 4 is problematic on a real 41 if you have the HPIL module installed with the printer functions "disabled". The switch on the module doesn't actually disable the printer ROM, it just moves it to page 4.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Library#4 Modules mass-update and New Overlays Ángel Martin 0 914 11-09-2013, 05:55 AM
Last Post: 'Angel Martin
  HP-41 MCODE: The Last Function - at last! Ángel Martin 0 731 11-08-2013, 05:11 AM
Last Post: Ángel Martin
  Non-Prime question alert: Hp-41 and synthetic instructions Marcel Samek 11 2,709 11-04-2013, 09:31 PM
Last Post: sjthomas
  [HP Prime] Constants Library Values Timothy Roche 24 5,261 11-02-2013, 04:17 PM
Last Post: Les Koller
  [HP-Prime CAS] Vector Calculus Library CompSystems 7 1,948 10-31-2013, 12:48 PM
Last Post: Han
  Equation Library/App for the Prime Harold A Climer 3 1,260 10-30-2013, 10:14 AM
Last Post: CompSystems
  Equation Library on the PRIME Harold A Climer 0 759 10-26-2013, 10:01 AM
Last Post: Harold A Climer
  CASplus Library for HP-Prime CompSystems 1 898 10-05-2013, 12:44 AM
Last Post: CompSystems
  The Rich HP Calculator Library Eddie W. Shore 0 615 09-27-2013, 10:19 PM
Last Post: Eddie W. Shore
  So, latest 41CL / Library 4 config is... Gene Wright 4 1,394 09-22-2013, 02:59 AM
Last Post: Ángel Martin

Forum Jump: