Txt to Raw and Raw to Txt

General discussion about calculators, Swiss Micros or otherwise
Bill (Smithville NJ)
Posts: 26
Joined: Sat Jul 22, 2017 7:14 pm

Txt to Raw and Raw to Txt

Post by Bill (Smithville NJ) » Tue Dec 19, 2017 5: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.

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)
Last edited by Bill (Smithville NJ) on Tue Dec 19, 2017 8:06 pm, edited 1 time in total.

grsbanks
Posts: 703
Joined: Tue Apr 25, 2017 9:23 am
Location: Preston, Lancs, UK

Re: Txt to Raw and Raw to Txt

Post by grsbanks » Tue Dec 19, 2017 6:49 pm

Bill (Smithville NJ) wrote:
Tue Dec 19, 2017 5: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/
Not SwissMicros staff, just an enthusiast.

Bill (Smithville NJ)
Posts: 26
Joined: Sat Jul 22, 2017 7:14 pm

Re: Txt to Raw and Raw to Txt

Post by Bill (Smithville NJ) » Tue Dec 19, 2017 8:04 pm

grsbanks wrote:
Tue Dec 19, 2017 6: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

Testing-42
Posts: 8
Joined: Sun Dec 03, 2017 4:22 pm

Re: Txt to Raw and Raw to Txt

Post by Testing-42 » Wed Dec 20, 2017 8:48 am

Hmm, would it be possible to have an import/export from/to text in the file menu on the calculator?

User avatar
Walter
Posts: 776
Joined: Tue May 02, 2017 9:13 am
Location: Close to FRA, Germany

Re: Txt to Raw and Raw to Txt

Post by Walter » Wed Dec 20, 2017 9:19 am

Bill (Smithville NJ) wrote:
Tue Dec 19, 2017 5: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")
DM42 SN: 00041 --- Follower of Platon.

HP-35, HP-45, ..., HP-50, WP 34S, WP 31S, DM16L

tgray
Posts: 12
Joined: Fri Jul 28, 2017 1:36 am

Re: Txt to Raw and Raw to Txt

Post by tgray » Fri Dec 22, 2017 8:09 pm

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.

mcc
Posts: 173
Joined: Fri Jun 23, 2017 3:10 am

Re: Txt to Raw and Raw to Txt

Post by mcc » Sat Dec 23, 2017 8:01 am

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
DM 42 - SN: 00373, Firmware v.:3.11. / 3.11. as compiled by SwissMicros

grsbanks
Posts: 703
Joined: Tue Apr 25, 2017 9:23 am
Location: Preston, Lancs, UK

Re: Txt to Raw and Raw to Txt

Post by grsbanks » Sat Dec 23, 2017 8:43 am

If you want the source code (PHP) for the on-line encoder/decoder, you're welcome to adapt that to CLI.
Not SwissMicros staff, just an enthusiast.

mcc
Posts: 173
Joined: Fri Jun 23, 2017 3:10 am

Re: Txt to Raw and Raw to Txt

Post by mcc » Sat Dec 23, 2017 10:27 am

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
DM 42 - SN: 00373, Firmware v.:3.11. / 3.11. as compiled by SwissMicros

tgray
Posts: 12
Joined: Fri Jul 28, 2017 1:36 am

Re: Txt to Raw and Raw to Txt

Post by tgray » Sat Dec 23, 2017 11:07 am

Yes, adapting the online converter would work well. Can we get access to that code?

Post Reply