Encoder/decoder

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
Wyatt_Irk
Posts: 6
Joined: Sun Jun 30, 2019 11:25 pm

Encoder/decoder

Post by Wyatt_Irk » Tue Jul 02, 2019 4:44 pm

Is there a setting I’m missing that takes text files of program listings and encodes them?

toml_12953
Posts: 524
Joined: Wed May 03, 2017 5:46 pm
Location: Malone, NY USA

Re: Encoder/decoder

Post by toml_12953 » Tue Jul 02, 2019 6:08 pm

Wyatt_Irk wrote:
Tue Jul 02, 2019 4: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#
Tom L

My father was a man of the cloth. He was a tailor.

DM42 SN: 00025 (Beta)
SN: 00221 (Shipping)

Wyatt_Irk
Posts: 6
Joined: Sun Jun 30, 2019 11:25 pm

Re: Encoder/decoder

Post by Wyatt_Irk » Tue Jul 02, 2019 9:55 pm

The encoder/decoder isn’t accepting my text files for encoding - only *.raw files for decoding.

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

Re: Encoder/decoder

Post by grsbanks » Wed Jul 03, 2019 5:49 am

toml_12953 wrote:
Tue Jul 02, 2019 6: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
Not SwissMicros staff, just an enthusiast.

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

Re: Encoder/decoder

Post by grsbanks » Wed Jul 03, 2019 5:50 am

Wyatt_Irk wrote:
Tue Jul 02, 2019 9: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!
Not SwissMicros staff, just an enthusiast.

Wyatt_Irk
Posts: 6
Joined: Sun Jun 30, 2019 11:25 pm

Re: Encoder/decoder

Post by Wyatt_Irk » Fri Jul 05, 2019 10:47 pm

Now I’m getting an “invalid file extension” when trying to upload a program listing to the forum. It is a text file (*.txt).

Wyatt_Irk
Posts: 6
Joined: Sun Jun 30, 2019 11:25 pm

Re: Encoder/decoder

Post by Wyatt_Irk » Fri Jul 05, 2019 10:50 pm

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.

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

Re: Encoder/decoder

Post by grsbanks » Sat Jul 06, 2019 7:19 am

That encodes no problem.
Not SwissMicros staff, just an enthusiast.

User avatar
ijabbott
Posts: 164
Joined: Fri Dec 15, 2017 1:34 pm
Location: GB-MAN

Re: Encoder/decoder

Post by ijabbott » Sat Jul 06, 2019 9:21 am

Wyatt_Irk wrote:
Tue Jul 02, 2019 9: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.

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

Re: Encoder/decoder

Post by grsbanks » Sat Jul 06, 2019 12:06 pm

ijabbott wrote:
Sat Jul 06, 2019 9: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?
Not SwissMicros staff, just an enthusiast.

Post Reply