The Museum of HP Calculators

HP Forum Archive 15

[ Return to Index | Top of Index ]

Install Program in HP49G
Message #1 Posted by Gus on 17 May 2005, 1:33 p.m.

Hello,

I'm using Emu48 v1.36 with the HP 49G in my WM2003SE iPAQ.

Could someone please provide step by step instructions in order to install it to one of the ports.

I learned how to install a Library, but I can't find anything on Programs.

Thanks!! Gus

      
Re: Install Program in HP49G
Message #2 Posted by Gus on 17 May 2005, 1:36 p.m.,
in response to message #1 by Gus

Let me add that the Program I'm trying to install is a file with a .BIN extension.

            
Re: Install Program in HP49G
Message #3 Posted by NA on 22 May 2005, 8:42 a.m.,
in response to message #2 by Gus

You dont install programs you just download them to the calculator put them in user memory and envoke them using there names. Technically the only thing you can actually install on the calculator is Libraries. So the only way you could invoke a program from port memory is if you some how put it in a library.

                  
Re: Install Program in HP49G
Message #4 Posted by James M. Prange (Michigan) on 22 May 2005, 1:58 p.m.,
in response to message #3 by NA

Yes, a program is normally simply stored in a variable and is usually invoked by calling the variable's name. Alternatively, you can put the program on the stack and EVAL it.

Quote:
So the only way you could invoke a program from port memory is if you some how put it in a library.

That's not so. You can invoke a program stored in port memory just fine; it's automatically copied to temporary memory for execution, so you do have to have enough free memory available to do so.

That said, making a library isn't that difficult. On the 49 series, the tools to do so are even built-in to the calculator, so there's no need to use an application on a computer to make a library.

For an external library to be used, it has to be stored in a port, the calculator has to be warmstarted so that the addresses of the library objects are known, and the library has to be attached to a directory. The HOME directory can have an indefinite number of libraries attached, but a subdirectory can have only one directory attached.

For the "Try To Recover Memory?" routine to work correctly, it's best not to leave external libraries in user memory. Move, rather than copy, libraries to ports.

Most external libraries include a $CONFIG object that automatically attaches the library to the HOME directory, which might make a little sense in the 48, but in the 49 series, it would be much better to let the user arrange for any "automatic" attaching by using the STARTUP reserved variable.

But note that you can't run a library from an SD card on the 49g+; it has to be in a port with memory organized according to the calculator's conventions, that is, port 0, 1, or 2. Objects on the SD card are stored as binary transferred files in a FAT16 or FAT32 file system instead. But of course you can store a library object on the SD card.

What you can't do is overwrite any object stored in any port. The best you can do if you want to modify a port object is to purge the existing object from the port and then store a new object with the same name in the port.

I should mention that this Museum Forum is heavily orientated toward the older "True RPN" models. For RPL models, you'd do better asking on the USENET group comp.sys.hp48; do some searches from http://groups-beta.google.com/group/comp.sys.hp48 and lurk a bit before posting though. Other resources include http://www.hpcalc.org/, http://page.mi.fu-berlin.de/~raut/, and http://m.webring.com/hub?ring=hp48. Note that some SysRPL programs and libraries use unsupported entry points, so some of those designed for ROM revision 1.23 don't work correctly on ROM revision 2.00.

Regards,
James

            
Re: Install Program in HP49G
Message #5 Posted by James M. Prange (Michigan) on 22 May 2005, 2:37 p.m.,
in response to message #2 by Gus

Probably the reason that you can't find anything about installing a program is that there's nothing to it. Simply download the program to the calculator, navigate to whatever directory you downloaded it to, and press the menu key that corresponds to the program's name. In other words, Read The Fine Manual.

The ".BIN" extension on the file is simply to indicate to the user (or developer) that it's a binary transferred (compiled) object. ".hp" and ".txt" extensions might have some meaning to Conn4x, but extensions have absolutely no meaning to the calculator. Any file on the PC intended for transfer to the calculator should include a transfer header that tells the calculator (or Conn4x) how the file should be treated, and every object on the calculator starts with a "prologue" that tells the calculator how to handle it. That said, if you have the "Fraction Mark" set to "comma", then the "period" will be a separator character, which isn't "valid" in a variable name, so you'd have to rename a file with an "extension" in the name on your computer before downloading it to the calculator. Often you can rename the variable to whatever you prefer, exceptions being when the variable is called by name, either by itself or another program.

Regards,
James


[ Return to Index | Top of Index ]

Go back to the main exhibit hall