The Museum of HP Calculators

HP Forum Archive 15

[ Return to Index | Top of Index ]

HP-41 Program Listings & Barcode via PC
Message #1 Posted by G.R. Harvey on 14 July 2005, 10:31 p.m.

MAKING HP-41 PROGRAM BARCODE &/or PROGRAM LISTINGS VIA a PC & PRINTER

The following programs/files are used in this process:

V41 - A virtual HP-41 that runs on the PC - Program files can be read or written in RAW format

HP41UC.Exe Win41UC.Exe - Format conversion program which uses as a subroutine, HP41UC.EXE

41_Lista.XLS - Prints Program Listings and Barcode

PROCEEDURE: 1) Using V41 on the PC, manually key in the program steps 2) Save the program as a RAW formatted file using the PUT function 3) Using Win41UC.Exe, convert the RAW file into BIN format 4) Now using 41_Lista.XLS, print a program Listing &/or the barcode usable by the HP Wand.

Program Sources and Credits: V41 Author: Warren Furlow and Frank Bauernoeppel

HP41UC.Exe Ver 1.22 Author: Leo Duran Available from: hpmuseum.org

Win41UC.Exe Author: Ulisse Quadri Available from: hpmuseum.org

41_Lista.XLS Author: Dam McDonald Available from: hpmuseum.org

      
Re: HP-41 Program Listings & Barcode via PC
Message #2 Posted by Tony Duell on 15 July 2005, 3:47 p.m.,
in response to message #1 by G.R. Harvey

Alternatively, if you want to avoid proprietary, non-open-source software :

Download the LIF Utilities for Linux from the HPCC web site.

Compile them (they're GPLed C source code)

Use lifget to read an HP41 program from a real HP41 floppy disk, or download a .raw file from somewhere, or... (if you have an HPIL module, 82164 HPIL-RS232 interface and an extended I/O module, you can use the OUTP command on a real 41 to transfer a program to the PC).

If you want a listing, run the raw file through prog41. Use the -x option to load XROM definition files so that commands from plug-in ROMs have sensible names (if you don't load an XROM file, such commands have names like XROM 01,14). Use the pr program (standard unix/linux utility) to format the output if you wish.

If you want barcode, run the raw file through prog41bar. Run the output of that through barps to make a printable postscript file of the barcode. Feel free to write other output drivers if you so wish (the format of all the necessary files is in the distribution). If you want to download the program direct to your HP41, there's a description of a small modification you can make to the wand module, and an add-on circuit that goes between that an a PC parallel port. Then just send the output of prog41bar to that parallel port and the program will be downloaded to your 41 as if you'd scanned the appropriate barcode.

Note that all the programs read their input from STDIN, send their output to STDOUT. You can put them all together in a pipe if you want to.

Enjoy....

            
Re: HP-41 Program Listings & Barcode via PC
Message #3 Posted by Howard Owen on 28 July 2005, 1:13 p.m.,
in response to message #2 by Tony Duell

The wand hack is cool.

                  
Barcode Blinker
Message #4 Posted by Tony Duell on 29 July 2005, 6:56 a.m.,
in response to message #3 by Howard Owen

Have you built one?

                        
Re: Barcode Blinker
Message #5 Posted by Howard Owen on 29 July 2005, 12:45 p.m.,
in response to message #4 by Tony Duell

No. I just think it's a neat hack. I'm tempted to do it, but I think I'll wait until I have a second wand. (That's a reflection on my soldering skills, not your design. 8)

                        
Re: Barcode Blinker (wand hack)
Message #6 Posted by Vassilis Prevelakis on 30 July 2005, 12:07 a.m.,
in response to message #4 by Tony Duell

Way back in the 80s I had the same problem (namely that I could get data out of my HP41, but I could not get them back in).

Given that I only had an HP wand (no money for HP-IL), I used blue tack to attach my wand over the caps-lock LED on the keyboard of my BBC micro. I then wrote a BASIC (IMHO) program that blinked the LED in such a way as to convince the Wand that it was seeing the reflection of of its own LED on the paper. (I also had to make sure the Wand button was held down by a rubber band).

In this way I could xfer programs and data (what I was really looking for in the 1st place) to my 41. I considered this "hack" very neat as the LED/WAND combination was effectively an opto-isolator protecting my 41 from being zapped (my HP-41 was one of the first batches to come out of the US production line and was thought to be more sensitive to static than later units).

Later on I was told that I was lucky to get away with this procedure as the external LED could have overloaded the wand sensor. I am not sure whether this is true though.

**vp

      
Re: HP-41 Program Listings & Barcode via PC
Message #7 Posted by deny on 28 July 2005, 12:43 p.m.,
in response to message #1 by G.R. Harvey

Quote:
MAKING HP-41 PROGRAM BARCODE &/or PROGRAM LISTINGS VIA a PC & PRINTER

The following programs/files are used in this process:

V41 - A virtual HP-41 that runs on the PC - Program files can be read or written in RAW format

HP41UC.Exe Win41UC.Exe - Format conversion program which uses as a subroutine, HP41UC.EXE

41_Lista.XLS - Prints Program Listings and Barcode

PROCEEDURE: 1) Using V41 on the PC, manually key in the program steps 2) Save the program as a RAW formatted file using the PUT function 3) Using Win41UC.Exe, convert the RAW file into BIN format 4) Now using 41_Lista.XLS, print a program Listing &/or the barcode usable by the HP Wand.

Program Sources and Credits: V41 Author: Warren Furlow and Frank Bauernoeppel

HP41UC.Exe Ver 1.22 Author: Leo Duran Available from: hpmuseum.org

Win41UC.Exe Author: Ulisse Quadri Available from: hpmuseum.org

41_Lista.XLS Author: Dam McDonald Available from: hpmuseum.org



[ Return to Index | Top of Index ]

Go back to the main exhibit hall