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: 39
Joined: Mon Jul 01, 2019 1:25 am
Location: Leander, Texas

Encoder/decoder

Post by Wyatt_Irk »

Is there a setting I’m missing that takes text files of program listings and encodes them?
🤘
DM41X, DM42, HP33c, DM41
in the past: HP34C, HP41CX, HP48GX, HP32S, HP42s
toml_12953
Posts: 795
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

Re: Encoder/decoder

Post 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#
Tom L

Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
Wyatt_Irk
Posts: 39
Joined: Mon Jul 01, 2019 1:25 am
Location: Leander, Texas

Re: Encoder/decoder

Post by Wyatt_Irk »

The encoder/decoder isn’t accepting my text files for encoding - only *.raw files for decoding.
🤘
DM41X, DM42, HP33c, DM41
in the past: HP34C, HP41CX, HP48GX, HP32S, HP42s
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Encoder/decoder

Post 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
There are only 10 kinds of people in the world: those who understand binary and those who do not.
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Encoder/decoder

Post 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!
There are only 10 kinds of people in the world: those who understand binary and those who do not.
Wyatt_Irk
Posts: 39
Joined: Mon Jul 01, 2019 1:25 am
Location: Leander, Texas

Re: Encoder/decoder

Post 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).
🤘
DM41X, DM42, HP33c, DM41
in the past: HP34C, HP41CX, HP48GX, HP32S, HP42s
Wyatt_Irk
Posts: 39
Joined: Mon Jul 01, 2019 1:25 am
Location: Leander, Texas

Re: Encoder/decoder

Post 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.
🤘
DM41X, DM42, HP33c, DM41
in the past: HP34C, HP41CX, HP48GX, HP32S, HP42s
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Encoder/decoder

Post by grsbanks »

That encodes no problem.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
User avatar
ijabbott
Posts: 253
Joined: Fri Dec 15, 2017 2:34 pm
Location: GB-MAN

Re: Encoder/decoder

Post 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.
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Encoder/decoder

Post 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?
There are only 10 kinds of people in the world: those who understand binary and those who do not.
Post Reply