The Museum of HP Calculators

HP Forum Archive 19

[ Return to Index | Top of Index ]

41CX Startup Program?
Message #1 Posted by Egan Ford on 13 Oct 2009, 11:49 a.m.

Is there a way in the 41 series (native or with a module) to have a program execute on start up?

The point would be the have the calculator always start up in a known state (e.g. flag settings).

Thanks.

      
Re: 41CX Startup Program?
Message #2 Posted by Etienne Victoria on 13 Oct 2009, 12:07 p.m.,
in response to message #1 by Egan Ford

Yep, native:

Automatic Execution Flag:
If flag 11 is set the HP-41C automatically begins executing the current program whenever the calculator is turned on.

Etienne

Edited: 13 Oct 2009, 12:08 p.m.

            
Re: 41CX Startup Program?
Message #3 Posted by Egan Ford on 13 Oct 2009, 12:16 p.m.,
in response to message #2 by Etienne Victoria

Thanks. But, what I am looking for would be a default program. Is that possible?

                  
Re: 41CX Startup Program?
Message #4 Posted by Eric Smith on 13 Oct 2009, 12:51 p.m.,
in response to message #3 by Egan Ford

That's one of the functions of the Autostart/Mass Duplication ROM. The microcode function to support that was also in the HP SDK for use in custom ROMs.

                        
Re: 41CX Startup Program?
Message #5 Posted by Vieira, Luiz C. (Brazil) on 13 Oct 2009, 1:29 p.m.,
in response to message #4 by Eric Smith

Hi Eric, guys;

when I first read about the AutoStart & Duplication ROM I felt intrigued by such feature. Anyway, some other ROM seem to take advantage over this feature, like the CCD ROM, AECROM and the FORTH ROM. By inspecting the FORTH ROM module listing, the last parameters after the main ROM space refer to such things as 'PAUSE interrupt' (#8FF4), action 'After each program line' (#8FF5) and so. All of them have a NOP code (thatīs what we see in most ROM listings) except for the 'Awaken by pressing ON key' (#8FF9), which has a jump code for label 8FED (3A3: JNC -0C 8FED) in this FORTH ROM. Label 8FED is actually the last label in the listing and it seems to perform some sort of custom default setting. In fact, these three ROM modules actually reconfigure the HP41 standard keyboard in such a way the calculator performs custom tasks for regular keys when it is not in USER mode, and this should be done every time the calculator is turned ON (the calculator will never know if the module has been removed prior to be turned back on). I do not 'read' HP41 machine code without a table, so it would need further inspection. If the action to be performed when the calculators is 'Awaken by pressing ON key' can be defined by a user program, then we have a bunch of possibilities left...

Cheers.

Luiz (Brazil)

Edited: 13 Oct 2009, 1:37 p.m.

      
Re: 41CX Startup Program?
Message #6 Posted by Etienne Victoria on 13 Oct 2009, 12:15 p.m.,
in response to message #1 by Egan Ford

To complete my previous answer:

Upon turn on, the 41 will clear flag 11 before autoexecuting the program.

Therefore your autoexec program must set it again to ensure another autoexec at the next OFF/ON cycle.

HTH

Etienne

            
Re: 41CX Startup Program?
Message #7 Posted by Garth Wilson on 13 Oct 2009, 5:23 p.m.,
in response to message #6 by Etienne Victoria

Without using the modules, I have my sumation key (just under the ON key) assigned to a program that says SF 11, OFF. I never turn the 41 off by pressing ON, only by pressing the sumation key. The next instruction is where I want execution to pick up automatically every time I turn it on. That includes setting the constant-ON flag, then ENG 3, then seeing if an alarm is pending, and if so, display how long until it is due. Otherwise, it next checks to see if there's something in the DAYTIMR file it's supposed to remind me of, and if so, display that. Otherwise it goes on to display the time and date.

Edited: 13 Oct 2009, 5:24 p.m.

                  
Re: 41CX Startup Program?
Message #8 Posted by Egan Ford on 14 Oct 2009, 3:45 p.m.,
in response to message #7 by Garth Wilson

Great idea, very close to what I was looking for. Thanks.

      
Re: 41CX Startup Program?
Message #9 Posted by Karl Schneider on 14 Oct 2009, 12:59 a.m.,
in response to message #1 by Egan Ford

Hi, guys!

This isn't what Egan was seeking, but there was a long-ago entry in the MoHPC Memories section describing the built-in capability mentioned by Etienne:

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/memories.cgi?read=95

-- KS

Edited: 14 Oct 2009, 1:03 a.m.

            
Re: 41CX Startup Program?
Message #10 Posted by Christoph Klug on 14 Oct 2009, 3:26 a.m.,
in response to message #9 by Karl Schneider

The EXT-IL-PLUS Module includes the start feature of the AUTO-DUPLICATION ROM. Place a program in main memory called / named RECOVER, this is executed after switching ON HP41...

Best regards - Christoph Klug

                  
Re: 41CX Startup Program?
Message #11 Posted by Egan Ford on 14 Oct 2009, 3:45 p.m.,
in response to message #10 by Christoph Klug

Excellent, I will give it a try today. Thanks.

                  
Re: 41CX Startup Program?
Message #12 Posted by Egan Ford on 14 Oct 2009, 7:28 p.m.,
in response to message #10 by Christoph Klug

Christoph,

Just tested it. Absolutely perfect. Exactly what I was looking for. Thanks.

                        
Re: 41CX Startup Program?
Message #13 Posted by Christoph Klug on 15 Oct 2009, 2:27 a.m.,
in response to message #12 by Egan Ford

Dear Egan,

nice to hear that you like the autostart feature of the EXT-IL-PLUS module :-) I think this module is a nice collection of commands for advanced HP-41 applications...

Some more details about autostart and switching on HP-41 by an external wake up event you find in The IL2000 Interface System manual...

Best regards - Christoph Klug


[ Return to Index | Top of Index ]

Go back to the main exhibit hall