Page 1 of 3

Encoder/decoder

Posted: Tue Jul 02, 2019 6:44 pm
by Wyatt_Irk
Is there a setting I’m missing that takes text files of program listings and encodes them?

Re: Encoder/decoder

Posted: Tue Jul 02, 2019 8:08 pm
by toml_12953
Wyatt_Irk wrote:
Tue Jul 02, 2019 6:44 pm
Is there a setting I’m missing that takes text files of program listings and encodes them?
I use the web page:

http://howto-pages.org/SwissMicros/dm42 ... index.php#

Re: Encoder/decoder

Posted: Tue Jul 02, 2019 11:55 pm
by Wyatt_Irk
The encoder/decoder isn’t accepting my text files for encoding - only *.raw files for decoding.

Re: Encoder/decoder

Posted: Wed Jul 03, 2019 7:49 am
by grsbanks
toml_12953 wrote:
Tue Jul 02, 2019 8:08 pm
I use the web page:

http://howto-pages.org/SwissMicros/dm42 ... index.php#
Please don't. That's only a staging copy. The "official" encoder/decoder is here:

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

Re: Encoder/decoder

Posted: Wed Jul 03, 2019 7:50 am
by grsbanks
Wyatt_Irk wrote:
Tue Jul 02, 2019 11:55 pm
The encoder/decoder isn’t accepting my text files for encoding - only *.raw files for decoding.
Perhaps you could post something that it's refusing to encode? I can't help otherwise!

Re: Encoder/decoder

Posted: Sat Jul 06, 2019 12:47 am
by Wyatt_Irk
Now I’m getting an “invalid file extension” when trying to upload a program listing to the forum. It is a text file (*.txt).

Re: Encoder/decoder

Posted: Sat Jul 06, 2019 12:50 am
by Wyatt_Irk

Code: Select all

01▸LBL "IBW"
02 CLA
03 50
04 STO "D"
05 45.5
06 STO "E"
07 INPUT "Ht"
08 PROMPT
09 STO "Ht"
10 INPUT "M=1 F=2"
11 PROMPT
12 STO "M"
13 1
14 ENTER
15 R↓
16 X=Y?
17 GTO A
18 GTO B
19▸LBL A
20 RCL "D"
21 GTO C
22▸LBL B
23 RCL "E"
24 GTO C
25▸LBL C
26 RCL "Ht"
27 152.4
28 -
29 0.90551181
30 ×
31 +
32 STO "I"
33 VIEW "I"
34 END
It is a simple program to calculate ideal body weight.

Re: Encoder/decoder

Posted: Sat Jul 06, 2019 9:19 am
by grsbanks
That encodes no problem.

Re: Encoder/decoder

Posted: Sat Jul 06, 2019 11:21 am
by ijabbott
Wyatt_Irk wrote:
Tue Jul 02, 2019 11:55 pm
The encoder/decoder isn’t accepting my text files for encoding - only *.raw files for decoding.
It doesn't support uploading program listings in text files, so you have to select and copy the text (e.g. from a text editor) and paste it into the "DM42 Listing" text box of the decoder/encoder page.

Re: Encoder/decoder

Posted: Sat Jul 06, 2019 2:06 pm
by grsbanks
ijabbott wrote:
Sat Jul 06, 2019 11:21 am
It doesn't support uploading program listings in text files, so you have to select and copy the text (e.g. from a text editor) and paste it into the "DM42 Listing" text box of the decoder/encoder page.
Egads -- it never crossed my mind that anyone would ever want to do that! I mean, how much quicker than "Ctrl-A Ctrl-C click Ctrl-V" do people expect a file upload to be?