Page 1 of 1

DM16 encoder/decoder problem

Posted: Sun Mar 03, 2019 11:59 pm
by cdmackay
hi all,

I'm trying to use the Nut decoder to convert a memory dump from my DM16 into readable code, to save.

The decoder is showing me ??? for the first 7 lines of my program; the rest is fine.

Here's what I got from the serial console:

Code: Select all

DM16
04  f0000000c00000  f0000000c00020  00000000000080  eae00000000000  
08  00000000000000  00000000000000  5c008034000000  00000000000000  
18  00000000000000  0000000000007f  00000000000000  00000000000000  
e0  00000000008120  00000000000f00  00000000000000  00000000000000  
f8  00000000000000  0000000000d441  a160aa61024081  ccf1610142e600  
fc  81f060d6d7800a  00000000000000  000000000002f9  00000000000000  
A: 00000000000000  B: f0000000c00000  C: eae00000000000
S: 00000010000000
M: 0000000000000c  N: 0000000000000c  G: 02
I went to the decoder, selected DM16, and cleared the V22 box, as mine is running V28.

I entered the above on the LHS, and clicked Decode. In the RHS code dump, I get:

Code: Select all

001  ???          | ???
002  ???          | ???
003  ???          | ???
004  ???          | ???
005  ???          | ???
006  ???          | ???
007  ???          | ???
008  LBL 0        | 43 22 0
009  B?           |    42 6
010  GTO 2        |    22 2
011  LBL 1        | 43 22 1
012  RCL 1        |    45 1
013  1            |       1
014  +            |       40
015  STO 1        |    44 1
016  GTO 0        |    22 0
017  LBL 2        | 43 22 2
018  RCL 1        |    45 1
019  PSE          |    43 34
020  RCL 0        |    45 0
021  DSZ          |    43 23
022  GTO 1        |    22 1
023  RTN          |    43 21
the Mnemonics section is identical barring line numbers and the code numbers.

From line 8 to the end, it's correct. But lines 1–7 clearly aren't. My real lines 1–7 are:

Code: Select all

LBL A
STO 0
#B   
STO I
RCL 0
0    
STO 1
[No comments on the naive code! It's my first one. I'll post that for comment in a separate thread :)]

Am I doing something wrong?

thanks very much.

Re: DM16 encoder/decoder problem

Posted: Mon Mar 04, 2019 6:46 am
by grsbanks
Thanks for the report. I'll take a look at that (I wrote the decoder/encoder).

Re: DM16 encoder/decoder problem

Posted: Mon Mar 04, 2019 5:19 pm
by cdmackay
grsbanks wrote:
Mon Mar 04, 2019 6:46 am
Thanks for the report. I'll take a look at that (I wrote the decoder/encoder).
Great, thanks. and thanks for writing it too :)

Re: DM16 encoder/decoder problem

Posted: Fri Mar 15, 2019 5:20 pm
by cdmackay
grsbanks wrote:
Mon Mar 04, 2019 6:46 am
Thanks for the report. I'll take a look at that (I wrote the decoder/encoder).
hi, any news, please? I was wondering whether I was driving it wrong, as I'd not used it before?

thanks very much (and for the new DM42 firmware too!)

Re: DM16 encoder/decoder problem

Posted: Fri Mar 15, 2019 5:45 pm
by grsbanks
I've honestly not had time.

Between my day job, and my position on the national executive of a social/fellowship organisation, I have little time to look at everything :)

This said, in a few weeks I'll have finished my 3-year term on the exec of 41 Club GB&I and will have more time to devote to this. There are also a couple of things that need looking at in the DM11 encoder/decoder.

Re: DM16 encoder/decoder problem

Posted: Fri Mar 15, 2019 5:48 pm
by cdmackay
No, of course, sorry, didn't mean to nag.

Let me know if I can do anything to help with the decoder, or test anything.

thanks again.

Re: DM16 encoder/decoder problem

Posted: Sat May 11, 2019 12:40 pm
by grsbanks
I'm finally getting round to this. Looking at my code now!

I've also just fixed a few bugs in the DM11 encoder/decoder.

Re: DM16 encoder/decoder problem

Posted: Sat May 11, 2019 2:02 pm
by grsbanks
cdmackay wrote:
Fri Mar 15, 2019 5:20 pm
hi, any news, please? I was wondering whether I was driving it wrong, as I'd not used it before?
It was balking on the extra spaces at the end of the lines of your DM16 dump.

It shouldn't do that. It should strip those spaces. Working on that now.

Edit: Fixed and David has pushed the changes live. This should work now.

Re: DM16 encoder/decoder problem

Posted: Sun May 12, 2019 10:51 pm
by cdmackay
thanks very much indeed!

running out of time today; will test tomorrow. much appreciated.

Re: DM16 encoder/decoder problem

Posted: Sun May 19, 2019 10:18 pm
by cdmackay
grsbanks wrote:
Sat May 11, 2019 2:02 pm
Edit: Fixed and David has pushed the changes live. This should work now.
I finally got a chance to test it properly; works perfectly for me now, thanks very much indeed for the fix.