HP Articles Forum
[Return to the Index ]
[ Previous | Next ]
41C to 50g Migration
Posted by Egan Ford on 1 Mar 2008, 4:48 a.m.
NOTE: the following article also applies to the 48 and 49 series.
HP-41E is an HP-41CV emulator that comes in eight different flavors. This article is based on the HP-41EA flavor. A complete description of each flavor can be obtained here: http://hrastprogrammer.com/hp41e/index.htm.
<< 3: "HP41E/HP41EA" EVAL >>
If you are just browsing and want to take a test drive first, then fire up Debug4x (EMU48 with 50g support), drag-and-drop HP41EA onto the virtual LCD (first level stack element should be 'Code'), then type 'HP41' ENTER STO.
Try not to get too excited, we still have a bit of work to get done. Ok, go ahead and add a few numbers together, get it out of your system. When you are done playing around use ON-F to exit. Now run HP41 again. Doh! MEMORY LOST message again. No problem, you just need to enable memory saving. To do this press ON-STO. Now add a few numbers together, then ON-F. You'll notice a new file in your 50g HOME/HP41E directory: RM41. This is the persistent HP-41E storage. If you remove that file you lose your memory.
If you want to keep your RM41 file on SD, first copy it to SD:
'RM41' RCL :3:"HP41E/RM41" STO 'RM41' PURGEthen change the HP41 launch program to:
%%HP: T(3)A(R)F(.); \<< :3:"HP41E/RM41" RCL 'RM41' STO :3:"HP41E/HP41EA" EVAL 'RM41' DUP RCL :3:"HP41E/RM41" DUP PURGE STO PURGE \>>This is also useful for desktop to 50g shuttle transfers.
As you experiment with HP-41E, you'll notice that there is not a 41C to 50g key for key equivalent. Until you memorize the differences, print out this keymap, laminate it, and put in your wallet:
The labels in brackets () are the replacement for the label on the key. The unbracketed labels are the shifted function.
Big picture process:
TIP: I store my RM41 file on my SD card in the HP41E directory. HP41UC, RAW41, and my source files are in that directory as well. When I need to manage my RM41 file, I just put the SD card in my laptop and change to the SD HP41E directory and do all my work there. Makes it easy.
NOTE: HP41UC is a DOS program and can be run from any DOS emulator (e.g. DOSBox). However RAW41 is a Windows executable. For RAW41, Mac/Linux users will need Windows installed in a virtual machine. I recommend VMware Fusion for the Mac and VMware Workstation 6.5 for Linux.
Wine (Windows Emulator) is also an option. An example Wine session from a Linux workstation:
$ wine RAW41.EXE \? RM41
HP-41E Program Manager Copyright (C) 1998-2000 by HrastProgrammer
LOAD RM41 ... CALC=HPHP49-C REGS=320 SIZE=273 R00=0EF BOTTOM=040 TOP=3EF FIRST=0C0 .END.=0C8.2 PRGM=0D4.6 LINE=FFF PROGRAMS: 0C8.2 C80C20 .END. 0D4.6 C600F7 LBL "SORTEM" 0D5.2 C80500 END 0DA.6 C600F7 LBL "SAVAGE" 0DB.2 C80800 END 0E3.6 C600F2 LBL "S" 0E4.2 C80900 END 0ED.6 C600F5 LBL "NQ41" 0EE.2 C00000 ENDA few things to consider with Wine and Linux or OS/X:
;my cool program LBL "COOL" ;always comment your code "HP-41E IS" ;put string in alpha register >" SO COOL" ;put more string in alpha register AVIEW ;show the string END ;end of programCompile with HP41UC:
C:\WKDIR>DEL COOL.RAW C:\WKDIR>HP41UC /t=COOL.41C /r=COOL.RAWOutput:
txt[ C:\WKDIR\COOL.41C ] => raw[ C:\WKDIR\COOL.RAW ] .END. found on line 6. type[ E080 ] size[ 0020 ] ( 32 bytes ) implementation[ 00200020 ] 256 bytes written.For more information on HP41UC read the documentation: http://www.hpmuseum.org/software/41uc.htm.
C:\WKDIR>./RAW41 ? RM41Output:
HP-41E Program Manager Copyright (C) 1998-2000 by HrastProgrammer LOAD RM41 ... CALC=HPHP49-W REGS=320 SIZE=273 R00=0EF BOTTOM=040 TOP=3EF FIRST=0C0 .END.=0EE.2 PRGM=0EF.0 LINE=000 PROGRAMS: 0EE.2 C00020 .END.
Empty. No programs. Load program:
C:\WKDIR>RAW41 COOL.RAW RM41Output:
HP-41E Program Manager Copyright (C) 1998-2000 by HrastProgrammer LOAD RM41 ... RAW=COOL.RAW CALC=HPHP49-W REGS=320 SIZE=273 R00=0EF BOTTOM=040 TOP=3EF FIRST=0C0 .END.=0EE.2 PRGM=0EF.0 LINE=000 PROGRAMS: 0EE.2 C00020 .END. LOADING FROM RM41 TO RM41 (CHECKSUM=D8 FREE=322 RAW=32) ... CALC=HPHP49-W REGS=320 SIZE=273 R00=0EF BOTTOM=040 TOP=3EF FIRST=0C0 .END.=0E9.2 PRGM=0ED.6 LINE=FFF PROGRAMS: 0E9.2 C80420 .END. 0ED.6 C600F5 LBL "COOL" 0EE.2 C00000 END
Cool program loaded. You can verify again with:
C:\WKDIR>RAW41 ? RM41Output:
HP-41E Program Manager Copyright (C) 1998-2000 by HrastProgrammer LOAD RM41 ... CALC=HPHP49-W REGS=320 SIZE=273 R00=0EF BOTTOM=040 TOP=3EF FIRST=0C0 .END.=0E9.2 PRGM=0ED.6 LINE=FFF PROGRAMS: 0E9.2 C80420 .END. 0ED.6 C600F5 LBL "COOL" 0EE.2 C00000 ENDFor more details on RAW41 read the documentation: http://hrastprogrammer.com/hp41e/raw41.htm.
EVAL ALPHA C O O L ALPHAEasy!
Your 41C programs live on. Enjoy!
Edited: 10 Apr 2008, 4:00 p.m.
[ Return to the Message Index ]
Go back to the main exhibit hall