DM16 encoder/decoder problem

Forum for discussion of the DM10, DM11, DM12, DM15, DM16 and DM41 units
Post Reply
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

DM16 encoder/decoder problem

Post 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.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: DM16 encoder/decoder problem

Post by grsbanks »

Thanks for the report. I'll take a look at that (I wrote the decoder/encoder).
There are only 10 kinds of people in the world: those who understand binary and those who do not.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: DM16 encoder/decoder problem

Post 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 :)
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: DM16 encoder/decoder problem

Post 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!)
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: DM16 encoder/decoder problem

Post 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.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: DM16 encoder/decoder problem

Post 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.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: DM16 encoder/decoder problem

Post 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.
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: DM16 encoder/decoder problem

Post 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.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: DM16 encoder/decoder problem

Post by cdmackay »

thanks very much indeed!

running out of time today; will test tomorrow. much appreciated.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: DM16 encoder/decoder problem

Post 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.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Post Reply