Page 1 of 3

Txt to Raw and Raw to Txt

Posted: Tue Dec 19, 2017 6:18 pm
by Bill (Smithville NJ)
I'm wondering if there are TXT to RAW and RAW to TXT utilities.

At present, I'm loading the RAW files into Free42 on the PC, then listing the file
to a text file to get a program listing.

Likewise, I'm taking a text listing and copy/paste into Free42 and then save to RAW file.
Then I can import into DM42.

I'm really hoping there are some utilities to make this easier.

I have tried hp41uc, but it wasn't too successful.

Thanks and I am really enjoying my new DM42.

Bill
Smithville, NJ

(edited hp42c to hp41c..bjh)

Re: Txt to Raw and Raw to Txt

Posted: Tue Dec 19, 2017 7:49 pm
by grsbanks
Bill (Smithville NJ) wrote:
Tue Dec 19, 2017 6:18 pm
I'm wondering if there are TXT to RAW and RAW to TXT utilities.
If you don't mind having to be on line to use it then there's the DM42-decoder on the SwissMicros website (written by yours truly)

https://www.swissmicros.com/dm42/decoder/

Re: Txt to Raw and Raw to Txt

Posted: Tue Dec 19, 2017 9:04 pm
by Bill (Smithville NJ)
grsbanks wrote:
Tue Dec 19, 2017 7:49 pm

If you don't mind having to be on line to use it then there's the DM42-decoder on the SwissMicros website (written by yours truly)

https://www.swissmicros.com/dm42/decoder/
That's a big help. Thanks.

Question: could you add "Download" to the "Listing" side? I know I can select, copy and paste it to a file,
but would be nice to just be able to download it.

Has there been any thoughts to create a utility program that could be run on the PC
to encode/decode? Something similar to the hp41uc program.

Thanks for all your work (among many others) in making the DM42 a reality.

Bill
Smithville, NJ

Re: Txt to Raw and Raw to Txt

Posted: Wed Dec 20, 2017 9:48 am
by Testing-42
Hmm, would it be possible to have an import/export from/to text in the file menu on the calculator?

Re: Txt to Raw and Raw to Txt

Posted: Wed Dec 20, 2017 10:19 am
by Walter
Bill (Smithville NJ) wrote:
Tue Dec 19, 2017 6:18 pm
I'm wondering if there are TXT to RAW and RAW to TXT utilities.

At present, I'm loading the RAW files into Free42 on the PC, then listing the file
to a text file to get a program listing.

Likewise, I'm taking a text listing and copy/paste into Free42 and then save to RAW file.
Then I can import into DM42.
Way down below the ocean - please read here: viewtopic.php?f=3&t=209&start=20#p2972
HTH (shamelessly quoting "Atlantis")

Re: Txt to Raw and Raw to Txt

Posted: Fri Dec 22, 2017 9:09 pm
by tgray
Being able to import programs from text files right on the calculator would be really convenient. Barring that, can we get a command line utility, or even the specification for RAW files?

It would be great to be able to automatically encode/decode programs between the two formats locally.

Re: Txt to Raw and Raw to Txt

Posted: Sat Dec 23, 2017 9:01 am
by mcc
Hi,

over the time I collect A LOT of HP41/HP42s programs in raw format from the internet for the Free42 on my Android tablet.
Some does not run, and until now I found one which 'kills' Free42.
A commandline tool (I am UNIX/Linux based) to batch convert all of these would make it MUCH easier to view
them for problems before transferring them to the Android table or the DM42 internal flash only to see, that
they will not run.

Cheers!
Meino

Re: Txt to Raw and Raw to Txt

Posted: Sat Dec 23, 2017 9:43 am
by grsbanks
If you want the source code (PHP) for the on-line encoder/decoder, you're welcome to adapt that to CLI.

Re: Txt to Raw and Raw to Txt

Posted: Sat Dec 23, 2017 11:27 am
by mcc
Hi,

I am on christmas holiday now - and my DM42 is waiting at Swissmicros for me to arrive back at home soon
(I asked Michael for a delayed delivery... :) ) ...so at the moment no chance to code anything.
But yes, I will try to implement something which can be called from the commandline (no GUI though).
Perl may be a valid choice for implementing an encoder/decoder ... this would make it quite OS independant I think ?!?!

I have send you a personal email with additional informations ... :)

Cheers
Meino

Re: Txt to Raw and Raw to Txt

Posted: Sat Dec 23, 2017 12:07 pm
by tgray
Yes, adapting the online converter would work well. Can we get access to that code?