Txt to Raw and Raw to Txt

General discussion about calculators, SwissMicros or otherwise
Bill (Smithville NJ)
Posts: 34
Joined: Sat Jul 22, 2017 9:14 pm

Txt to Raw and Raw to Txt

Post 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)
Last edited by Bill (Smithville NJ) on Tue Dec 19, 2017 9:06 pm, edited 1 time in total.
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Txt to Raw and Raw to Txt

Post 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/
There are only 10 kinds of people in the world: those who understand binary and those who do not.
Bill (Smithville NJ)
Posts: 34
Joined: Sat Jul 22, 2017 9:14 pm

Re: Txt to Raw and Raw to Txt

Post 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
Testing-42
Posts: 8
Joined: Sun Dec 03, 2017 5:22 pm

Re: Txt to Raw and Raw to Txt

Post by Testing-42 »

Hmm, would it be possible to have an import/export from/to text in the file menu on the calculator?
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: Txt to Raw and Raw to Txt

Post 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")
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
tgray
Posts: 27
Joined: Fri Jul 28, 2017 3:36 am

Re: Txt to Raw and Raw to Txt

Post 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.
mcc
Posts: 277
Joined: Fri Jun 23, 2017 5:10 am

Re: Txt to Raw and Raw to Txt

Post 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
DM 42 - SN: 00373, Firmware release v.:3.22. / DMCP 3.24. as compiled by SwissMicros
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Txt to Raw and Raw to Txt

Post by grsbanks »

If you want the source code (PHP) for the on-line encoder/decoder, you're welcome to adapt that to CLI.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
mcc
Posts: 277
Joined: Fri Jun 23, 2017 5:10 am

Re: Txt to Raw and Raw to Txt

Post 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
DM 42 - SN: 00373, Firmware release v.:3.22. / DMCP 3.24. as compiled by SwissMicros
tgray
Posts: 27
Joined: Fri Jul 28, 2017 3:36 am

Re: Txt to Raw and Raw to Txt

Post by tgray »

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