Problem decoding DM41X raw file

Discussion about the new DM41X calculator
Post Reply
Boub65
Posts: 176
Joined: Tue Sep 12, 2017 4:34 pm
Location: Rabat, Morocco

Problem decoding DM41X raw file

Post by Boub65 »

Hello,
I keyed a program on my DM41X (prime number check using Miller algorithm).

When I save the program in RAW file on the DM41X calc, then upload the RAW file in the DM41 decoder I have two problems :
- An error in first line (ERROR: Wrong address "c000f7014d494c" at line 2)
- An additional "ATAN" instruction in the instructions listing (decode dump) at line 229, after the "END"

I double checked on the DM41X, there is only 228 lines of code ("END" instruction) and no such "ATAN" instruction at the end.

Any idea?
Mill64.raw file in attachement.

Code: Select all

LBL "MILL64"  ; Key: 11
CLA
STO 00
1
X=Y?
GTO 00
RDN
4
X=Y?
GTO 00
RDN
2
X=Y?
GTO 01
RDN
3
X=Y?
GTO 01
5
STO 09
1662803
STO 01
23
STO 02
13
STO 03
2
STO 04
RCL 00
1
-
STO 10
LBL 03
RCL 10
2
MOD
X#0?
GTO 04
2
ST/ 10
GTO 03
LBL 04
DSE 09
GTO 05
GTO 01
LBL 05
RCL IND 09
RCL 10
RCL 00
XEQ "MTEST64"
X=0?
GTO 00
GTO 04
LBL 00
"NOT PRIME"
0
BEEP
RTN
LBL 01
"PRIME"
1
BEEP
RTN
LBL "MTEST64"
STO 11
RDN
STO 12
RDN
RCL 12
RCL 11
XEQ "POW"
STO 13
1
X=Y?
GTO 95
RDN
RCL 11
1
-
X=Y?
GTO 95
LBL 07
RCL 12
RCL 11
1
-
X=Y?
GTO 94
RCL 13
X^2
1 E10
X<Y?
GTO 06
RDN
RCL 11
MOD
GTO 07
LBL 06
RCL 13
RCL 13
RCL 11
XEQ "MUL34"
LBL 07
STO 13
RCL 12
2
ST* 12
RCL 13
1
X=Y?
GTO 94
RDN
RCL 11
1
-
X=Y?
GTO 95
GTO 07
LBL 94
0
RTN
LBL 95
1
RTN
LBL "POW"  ; Key: 12
STO 14
RDN
STO 15
RDN
STO 16
1
STO 17
RCL 16
RCL 14
MOD
STO 16
LBL 10
RCL 15
X<=0?
GTO 96
RCL 15
2
MOD
X=0?
GTO 11
RCL 17
RCL 16
*
1 E10
X<Y?
GTO 12
RDN
RCL 14
MOD
GTO 13
LBL 12
RCL 17
RCL 16
RCL 14
XEQ "MUL34"
LBL 13
STO 17
1
ST- 15
GTO 10
LBL 11
2
ST/ 15
RCL 16
RCL 16
*
1 E10
X<Y?
GTO 14
RDN
RCL 14
MOD
GTO 15
LBL 14
RCL 16
RCL 16
RCL 14
XEQ "MUL34"
LBL 15
STO 16
GTO 10
LBL 96
RCL 17
RTN
LBL "MUL34"
STO 18
RDN
STO 19
RDN
STO 20
0
STO 21
LBL 20
RCL 20
X=0?
GTO 97
2
MOD
X=0?
GTO 21
RCL 21
RCL 19
+
RCL 18
MOD
STO 21
LBL 21
RCL 20
2
/
INT
STO 20
RCL 19
2
*
RCL 18
MOD
STO 19
GTO 20
LBL 97
RCL 21
RTN
END
ATAN
Thanks,
Boubker.
Attachments
Mill64.raw
(427 Bytes) Downloaded 29 times
Sincèrement, Sincerely, 73,
Boubker

2xDM15L, DM41L, DM42 SN#00855 (+one lost during shipping), DM41X #00707
TI-89 titanium, CASIO fx-cg50 (to play with micropython)

There are three kinds of people in the world: those who know math and those who don't.
Peet
Posts: 179
Joined: Tue Sep 29, 2020 12:01 am
Location: Germany

Re: Problem decoding DM41X raw file

Post by Peet »

I guess the DM41 decoder is not fully compatible with the .raw files of the DM41X. HP41UC works both ways.
If you decode and re-encode your RAW with HP41UC (tested with v3.0), you will get a RAW that the DM41 decoder can handle.
My programmable calculators - former: CBM PR100, HP41CV, HP28S, HP11C - current: HP48G(256kB), HP35S, Prime, DM41X, DM42
Post Reply