HP Forums

Full Version: HP-41: Read/Write XM file from a LIF-file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

What is the easiest way to both read & write an XM-file to a LIF file. I believe I could read the file via Tony Duell's lifget... but write?

Edit: Turns out even reading an XM file from a LIF-file is quite a task - first saving all of Extended Memory to a LIF-file via WRTXM (from Extended IL(+)) and then extracting the whole XM file via Lifutil's command "lifget -f 'lif-file' 'xm-file'" and then poking out the file within Extended Memory from that... tough.

Anyone got some magic up their sleeves?

I will pay you back with a severe geek-hack :-)

Edited: 1 Mar 2010, 3:38 p.m.

Since no takers, I have an idea that might be easier: Read and write a 41 "data file" (registers saved by the HP-IL command WRTR) in a LIF-file.

Still don't know how to do this yet, but it should be somewhat easier to accomplish as the registers are fixed length.


Edited: 2 Mar 2010, 3:52 p.m.

Do you want to write individual files from extended memory to mass storage device and back to extended memory?

Are there no such functions available?

And this Extended IL+ module you mention, where can I find it? I assume it is not the Extended IO module, as that one does not have any WRTXM.

The PANAME module has XM<->Tape (or disk) functions, but not sure about individual files.

As far as I know the other mentioned ROM must be the only one still being sold commercially by the author. A pity for the real enthusiasts...

So you want to create an XM file on your real 41, e.g. an ASCII file call "FOO" with the contents "HP41, LIVE FREE OR DIE\0xFF". Then you want to copy FOO to a LIF diskette via HP-IL/9114. Then you want to shuttle that floppy to your Linux box and run "lifget" to get FOO on your PC. Then you want to be able to read it from Linux? And then you want to do the reverse?

Pretty much - except I want to use the PIL-Box except for the shuttle disk.

The WRTXM is part of the original HP-IL Extended module by Sqwid (image over at TOS).

Edited: 4 Mar 2010, 2:45 p.m.