nut_decoder for DM11 has troubles with flags?

If you think you've found a bug in one of these machines, post about it here indicating the steps you perform in order to reproduce it.

Please prefix your topic with the model number in question and firmware version this way:

[DM16 V22] CHS gives unexpected results
Post Reply
michaelzinn
Posts: 41
Joined: Tue Apr 10, 2018 11:34 pm

nut_decoder for DM11 has troubles with flags?

Post by michaelzinn »

This code turns out very wrong, I suspect it's because of the flag stuff. Try encoding and then decoding it for the DM11

Code: Select all

ENTER
LBL A
1
F? 0
GTO 6
R_down
ENTER
Output looks like this, containing commands that the DM11 can't even execute like register arithmetic?

Code: Select all

STO÷ 7
GTO 0
STO× (i)
STO- 5
???
???
ENTER
michaelzinn
Posts: 41
Joined: Tue Apr 10, 2018 11:34 pm

Re: nut_decoder for DM11 has troubles with flags?

Post by michaelzinn »

Also, the decoder displays DSE as 42 28, while the calculator shows it as 42 5.
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: nut_decoder for DM11 has troubles with flags?

Post by rprosperi »

Confirmed.

Something looks broken...
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: nut_decoder for DM11 has troubles with flags?

Post by grsbanks »

Thanks for raising this. I'll look at it as soon as I can. It might be a few days before I get the opportunity.
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: nut_decoder for DM11 has troubles with flags?

Post by grsbanks »

This was breaking because "R_down" isn't recognised as a command (the "NaN" in the middle of the dump was the clue to this).

If you use "Rv", "RDN" or "R↓" instead then it works, but I'll alter the code so that it accepts R_down as well.
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: nut_decoder for DM11 has troubles with flags?

Post by grsbanks »

This (and the DSE thing which also affected x<>I and ISG) is fixed on my staging server. I'm just waiting for Michael or David to pull it down to the SwissMicros website.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
Post Reply