Post Reply 
[DM41X] State file encoder - strange behavior
01-19-2022, 09:08 PM
Post: #1
[DM41X] State file encoder - strange behavior
I post here the same message I posted yesterday on the SwissMicros forum, in cas someone here has an answer.

Hello everyone,
something is puzzling me with the state encoder/decoder (https://dm41.swissmicros.com/).

Starting from a fresh hard reset (pin on the back) on the DM41X ("MEMORY LOST"), I create a simple program:
Code:
LBL "HELLO"
"HELLO WORLD"
AVIEW
(implicit .END.)

I run it twice, everything is fine, it appears in CAT 1, etc.
Then I save the state as a new file "hw.d41", transfer this file on my computer, and decode it. The result is, as you guess:
Code:
; STACK = 0 0 0 0 0
; ALPHA = "HELLO WORLD"
LBL "HELLO"
"HELLO WORLD"
AVIEW
END

If I encode this exact listing and create a new "hw2.d41", then load this new state file on the DM41X, the HELLO program doesn't appear in CAT 1.
Pressing [PRG] opens the source that I can see, and the following happens:
- try to suppress the first line (LBL "HELLO") -> DM41X locked, need to hard reset
- try to add an instruction somewhere in the code and exit PRG mode -> HELLO prog still not recognized
- GTO .. (packing) -> HELLO prog appears in CAT 1

Weird, is'nt it?

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
01-19-2022, 10:16 PM
Post: #2
RE: [DM41X] State file encoder - strange behavior
The DM41 programming tool doesn't seem to be 100% compatible with the DM41X.

My calculators - former: CBM PR100, HP41CV, HP11C, HP28S - current: HP48G, HP35S, Prime, DM41X, DM42
Find all posts by this user
Quote this message in a reply
01-20-2022, 03:25 AM
Post: #3
RE: [DM41X] State file encoder - strange behavior
Peet is right, the tool is intended for the DM41/DM41L, but not the DM41X, though I honestly can't recall the specifics of how/why not.

That said, pinkman, try PACKing as the very first thing you do after you load the new state file on the 41X; the act of packing might correct things. It's just a Hail Mary, but easy to try.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
01-20-2022, 07:11 PM
Post: #4
RE: [DM41X] State file encoder - strange behavior
Thank you Robert.
Today’s tests weren’t good, I’ll have to check what’s happening.

Not a big case anyway, once you know how to handle it (add a ligne, pack, but it doesn’t work at 100%). Never touch the first label, or it’ll lock the device.

My advice: save your progs as raw files, save state files, have a pin to reset!
My next step will be to use hp41uc.

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
01-20-2022, 07:21 PM
Post: #5
RE: [DM41X] State file encoder - strange behavior
(01-19-2022 10:16 PM)Peet Wrote:  The DM41 programming tool doesn't seem to be 100% compatible with the DM41X.

Yes for sure, but it is documented in the DM41X section of SwissMicros’website, so I wanted to try.

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
01-21-2022, 01:20 AM
Post: #6
RE: [DM41X] State file encoder - strange behavior
(01-20-2022 07:21 PM)pinkman Wrote:  
(01-19-2022 10:16 PM)Peet Wrote:  The DM41 programming tool doesn't seem to be 100% compatible with the DM41X.

Yes for sure, but it is documented in the DM41X section of SwissMicros’website, so I wanted to try.

Please let me know where you saw that, I just checked both technical areas under DM41X and don't see it mentioned, but it may still be there somewhere...

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
01-23-2022, 12:22 AM
Post: #7
RE: [DM41X] State file encoder - strange behavior
I doubted myself but here it is:
SwissMicros.com -> Technical -> model DM41X -> User Manual -> §5 Program Decoder/Encoder

Don’t correct the site, correct the tools! Smile

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
01-23-2022, 02:00 AM
Post: #8
RE: [DM41X] State file encoder - strange behavior
(01-23-2022 12:22 AM)pinkman Wrote:  I doubted myself but here it is:
SwissMicros.com -> Technical -> model DM41X -> User Manual -> §5 Program Decoder/Encoder

Don’t correct the site, correct the tools! Smile

OK, yes, I'm aware the manual mentions it, but also note it was updated to say:
"(To be implemented…​) Note that this utility is originally designed for DM41 and needs update to fully support all features of DM41X. "

I agree, it would be strongly preferred to have the Encoder support the 41X, but until that can be updated, references to the 41X were removed or the incompatibility clarified. I thought one had been missed... Wink

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
01-23-2022, 06:11 PM
Post: #9
RE: [DM41X] State file encoder - strange behavior
Ok I understand. It is not a big problem since hp41uc works really well, and… in fact the FAT storage is of a great help to avoid using the PC link.

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
01-24-2022, 01:50 AM
Post: #10
RE: [DM41X] State file encoder - strange behavior
I've been using the DM42 encoder/decoder website to encode programs before downloading to the DM41X. I haven't run into any problems.

https://technical.swissmicros.com/decoders/dm42/

CC41 coming soon!
Find all posts by this user
Quote this message in a reply
01-30-2022, 10:55 PM
Post: #11
RE: [DM41X] State file encoder - strange behavior
Yes I tried also, but I could not use it with HP41CX specific instructions.
Or maybe I missed something?

Anyway, the port and compiling of hp41uc for MacOS was very simple (minor changes in .h file), and I’m now using RAW transfers with command line tools. State files are used only for backups.

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)