The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

HP41 Barcode generation
Message #1 Posted by Raymond Wiker on 27 Oct 2011, 4:17 p.m.

I have put an on-line barcode generator up at http://rwiker.github.com/hp41barcode. This is still a work in progress, it does not work with Internet Explorer, and may contain bugs.

It should be able to take a program with line numbers in front of each statement (e.g, the "Catch the Goufers" game. It is also possible to to type several statements on one line, optionally separated with ";", as in the small example program.

PCs do not generally have the not-equals and Sigma characters easily available, so these should be entered as "!=" and "~", respectively. That means that "Sigma+" becomes "~+", and "X not-equals 0?" becomes "X!=0?".

To use, simply copy & paste the program into the text box in the "Input" tab, select the modules needed by the program, click the big button labelled "Do it!". If the bar codes look ok, simply print the page with the "Barcodes" tab selected.

      
Re: HP41 Barcode generation
Message #2 Posted by Geir Isene on 27 Oct 2011, 4:31 p.m.,
in response to message #1 by Raymond Wiker

The FOCAL Factory Board of Directors loudly applaud this excellent effort to bring more User Code programs to 'da peple'!

With this and the HEPAX+41CL, we can make FOCAL ROM modules in our sleep.

Cudos!

      
Re: HP41 Barcode generation
Message #3 Posted by Geir Isene on 27 Oct 2011, 4:46 p.m.,
in response to message #1 by Raymond Wiker

BTW; What's the significance behind the list of checkboxes/modules on the right?

            
Re: HP41 Barcode generation
Message #4 Posted by Raymond Wiker on 28 Oct 2011, 12:32 a.m.,
in response to message #3 by Geir Isene

Quote:
BTW; What's the significance behind the list of checkboxes/modules on the right?

The checkboxes correspond to a (small) number of common extension modules - by ticking a box, you can use names of functions provides by that module, instead of specifying the XROM codes directly.

As an example, if you uncheck the box next to "wand" and convert the sample program (the default text when the barcode generator is loaded), you'll get an error message that the "WNDDTA" function is unknown.

Note that some of the extension modules have conflicting function names, and so you shouldn't use them at the same time (like the "math" and "advantage" modules.)

Edited: 28 Oct 2011, 12:34 a.m.

      
Re: HP41 Barcode generation
Message #5 Posted by Geir Isene on 28 Oct 2011, 6:24 a.m.,
in response to message #1 by Raymond Wiker

Make the paste-in box bigger?

Edited: 28 Oct 2011, 6:25 a.m.

            
Re: HP41 Barcode generation
Message #6 Posted by Ángel Martin on 28 Oct 2011, 10:05 a.m.,
in response to message #5 by Geir Isene

It's resizable :-)

                  
Re: HP41 Barcode generation
Message #7 Posted by Geir Isene on 28 Oct 2011, 11:30 a.m.,
in response to message #6 by Ángel Martin

I saw it... to late :)

      
Re: HP41 Barcode generation
Message #8 Posted by Ángel Martin on 28 Oct 2011, 10:08 a.m.,
in response to message #1 by Raymond Wiker

A beauty! Great job indeed, the Wand lives on :-)

I didn't try it yet but does it cope with "XROM AA,BB" statements? I'm saying it because there's a few programs I'd love to BC involving the 41Z and SandMath (but of course...)

            
Re: HP41 Barcode generation
Message #9 Posted by Raymond Wiker on 28 Oct 2011, 11:25 a.m.,
in response to message #8 by Ángel Martin

There was a bug in the handling of XROM, which I have now fixed. I've also added some simple instructions, cunningly reusing text that I had already written.

                  
Re: HP41 Barcode generation
Message #10 Posted by Geir Isene on 28 Oct 2011, 11:34 a.m.,
in response to message #9 by Raymond Wiker

Knit-picking feature request: Add a title on the Barcode page (the main program label would be fine) so that it is easy to know which barcode was printed.

      
Re: HP41 Barcode generation
Message #11 Posted by Geir Isene on 28 Oct 2011, 11:40 a.m.,
in response to message #1 by Raymond Wiker

Added link on the UC-41 page.

      
Re: HP41 Barcode generation
Message #12 Posted by gene wright on 28 Oct 2011, 1:43 p.m.,
in response to message #1 by Raymond Wiker

Hey Raymond! Great job.

Can the text parsing be adjusted to handle other relatively common ways of entering things like X not equal Y etc., such as shown in my Goufer's game?

Things like X NE 0? and X <> 0?

            
Re: HP41 Barcode generation
Message #13 Posted by Raymond Wiker on 28 Oct 2011, 2:10 p.m.,
in response to message #12 by gene wright

Quote:
Hey Raymond! Great job.

Can the text parsing be adjusted to handle other relatively common ways of entering things like X not equal Y etc., such as shown in my Goufer's game?

Things like X NE 0? and X <> 0?


I think the program handles those cases, as well as a few others (I know that it did earlier, at least).

If you have other mappings, or examples of programs that it does not handle correctly, please let me know.

Also, if you have mappings between function names and XROM codes for particular modules, I'd be happy to add those, too.

                  
Re: HP41 Barcode generation
Message #14 Posted by Geir Isene on 28 Oct 2011, 3:15 p.m.,
in response to message #13 by Raymond Wiker

Synthetics? Like RCL M?

                        
Re: HP41 Barcode generation
Message #15 Posted by Raymond Wiker on 28 Oct 2011, 3:28 p.m.,
in response to message #14 by Geir Isene

Can be added, given a little information... May be time for me to order the museum DVD :-)

      
Re: HP41 Barcode generation
Message #16 Posted by Geir Isene on 28 Oct 2011, 3:36 p.m.,
in response to message #1 by Raymond Wiker

This is getting awesomer by the hour. You're fast, man!

Feature request: Ability to upload ROM images that shows up in the list on the right.

            
Re: HP41 Barcode generation
Message #17 Posted by Raymond Wiker on 28 Oct 2011, 5:21 p.m.,
in response to message #16 by Geir Isene

Note that the checkboxes only affect the mapping from function names used in extension rome to the actual XROM codes. That said, if you have any particular roms that you want added, please let me know - I'll need either a binary dump of the rom, or a text file of some sort that specifies the mapping.

                  
Re: HP41 Barcode generation
Message #18 Posted by Geir Isene on 28 Oct 2011, 5:34 p.m.,
in response to message #17 by Raymond Wiker

That is understood - but would it be easily feasible to let the user be able to upload a rom in order to make use of its labels?

                        
Re: HP41 Barcode generation
Message #19 Posted by Raymond Wiker on 29 Oct 2011, 2:14 p.m.,
in response to message #18 by Geir Isene

Not the way it is currently implemented - the barcode generator consists of only HTML and Javascript, and has *no* active server side component that could accept and process modules from the user.

On the other hand, anybody can download the generator and make whatever changes they want to it - including adding information about whatever modules that they want to use.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall