Free42/Mod Conversion/HP-41 Pacs


Hi All,
Just for fun I downloaded and installed Free42 simulator on a Palm and then tried to use a couple of programs that I found (MODFileWin.exe from an HP41 emulator site) and the rom2raw program from the Free42 site to convert the mod format into the raw format for loading into the Free42 program. I did this with the Financial Decisions Pac and it worked great. However, the Real Estate Pac had 2 routines that were machine code and hence could not be converted since rom2raw/Free42 can only convert/run HP-41 user code. The two routines from the Real Estate pac that would not convert are called "start" and "CLK". The purpose of those two routines is to assign the HP-41 global function names to the top row of HP-41 keys and to clear the assignments, respectively - all of the other routines are simply user code. However, even though the labels come into Free42 they don't seem to execute correctly. When I try to execute the "$" function it says "Nonexistent". Has anyone else out there played around with this and perhaps found a workaround?




[...] However, even though the labels come into Free42 they don't seem to execute correctly. When I try to execute the "$" function it says "Nonexistent".

Actually, XEQ "$" does work as it should; the "Nonexistent" error message is caused by the line immediately following LBL "$". In Free42, this line is displayed as XROM 11,45 -- by looking at the ROM listing (run rom2raw with the -l option) you can see that that is the START command from the Real Estate Pac.

N.B. Rom2raw warns about this type of problem; for example:

    tokken $ rom2raw RealEstateL-1A.ROM RealEstateU-1A.ROM
Input files: RealEstateL-1A.ROM RealEstateU-1A.ROM
Output file: REAL_EST_1A.raw
ROM Size: 8192 (0x2000), 2 pages
--- Page 0 ---
ROM Number: 11
47 functions (XROM 11,00 - 11,46)
XROM 11,00: dummy entry REAL EST 1A
XROM 11,01: user code "$"
XROM 11,02: user code "N"


XROM 11,44: user code "SIZE?"
XROM 11,45: machine code START
XROM 11,46: machine code CLK
--- Page 1 ---
ROM Number: 11
Bad function count (0), skipping this page.
Warning: this ROM contains machine code; this code cannot be translated.

The following machine code XROMs were called from user code:
The following non-local XROMs were called from user code:
XROM 29,01

Because of these XROM calls, the converted user code may not work.
tokken $

(The XROM 29,01 is the HP-82143 printer's ACA instruction, which accumulates the content of the ALPHA register to the printer's buffer. The HP-42S does not support this instruction, so that code will have to be modified to work there or in Free42. As it happens, in the Real Estate Pac, ACA is used simply to print the ALPHA register right-justified; there are other ways to achieve that result on the 42S, but I'll leave that as an exercise for the reader. ;-) )

- Thomas

Possibly Related Threads…
Thread Author Replies Views Last Post
  HP-41(CL): The easiest way to transfer FOCAL programs from a Linux PC to the HP-41 Geir Isene 13 5,581 12-05-2013, 02:40 AM
Last Post: Hans Brueggemann
  HP 35s polar/rectangular conversion CD Dodds 6 2,616 11-28-2013, 02:39 PM
Last Post: Dieter
  [WP 34s] Pressure Conversion Factors Timothy Roche 8 3,096 11-04-2013, 07:17 PM
Last Post: Dave Shaffer (Arizona)
  More programs for polar-rectangular conversion on HP Prime Michael de Estrada 4 1,949 11-04-2013, 12:43 AM
Last Post: Michael de Estrada
  HP Prime: Conversion factors Paul Townsend (UK) 19 4,919 08-27-2013, 09:19 AM
Last Post: Nigel J Dowrick
  nav pacs Al 6 2,256 06-17-2013, 02:08 AM
Last Post: Thomas Klemm
  Case mod Andrew Nikitin 0 799 06-09-2013, 04:51 PM
Last Post: Andrew Nikitin
  Nav Pacs Al 3 1,359 03-25-2013, 12:48 PM
Last Post: Al
  Celestial Navigation Pacs or "firmware" Al 3 1,445 11-26-2012, 08:37 PM
Last Post: Luiz C. Vieira (Brazil)
  The latest version of Free42 is now a OS X Universal application..... zeno333 1 995 10-21-2012, 11:12 PM
Last Post: Matt Agajanian

Forum Jump: