HP Forums
HP-41 Program Listings & Barcode via PC - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP-41 Program Listings & Barcode via PC (/thread-76022.html)



HP-41 Program Listings & Barcode via PC - G.R. Harvey - 07-14-2005

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 - Tony Duell - 07-15-2005

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 - deny - 07-28-2005

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





Re: HP-41 Program Listings & Barcode via PC - Howard Owen - 07-28-2005

The wand hack is cool.


Barcode Blinker - Tony Duell - 07-29-2005

Have you built one?


Re: Barcode Blinker - Howard Owen - 07-29-2005

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) - Vassilis Prevelakis - 07-30-2005

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