01-19-2022, 09:08 PM
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:
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:
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?
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?