Post Reply 
Program transfer from PC to DM41X
08-12-2024, 12:49 PM
Post: #1
Program transfer from PC to DM41X
I'm considering buying a DM41X. One thing I was wondering, which perusing the manual hasn't answered, is whether it allows the possibility of typing in a program in a text editor on a PC and then importing it to the calculator?

Thanks.

Chris
Find all posts by this user
Quote this message in a reply
08-12-2024, 03:04 PM
Post: #2
RE: Program transfer from PC to DM41X
Almost, but not quite.

The DM41X, like all 41 emulators, can import program files in what is known as "raw" format, which is the internal memory format needed to operate. To import a typed in text file, it must first be converted to .raw format and once that's done, you can connect to the 41X via USB and copy the .raw files to the /PROGRAM folder, then you import them using the [shift] [Setup] [File] menu commands to import them into 41 memory.

There are several utilities for doing this .txt <-> .raw format conversion, but the most commonly used is Leo Duran's HP41UC utility, available here:

https://sourceforge.net/p/hp41uc/code/ci/master/tree/

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
08-12-2024, 03:07 PM
Post: #3
RE: Program transfer from PC to DM41X
Thanks, Bob. That looks like just the thing I was looking for. I think I'm definitely going to order one. I appreciate your help.

Chris
Find all posts by this user
Quote this message in a reply
08-12-2024, 09:02 PM
Post: #4
RE: Program transfer from PC to DM41X
see also Sylvain's post here, for an alternative:

https://forum.swissmicros.com/viewtopic....856#p32856

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
08-13-2024, 07:06 PM
Post: #5
RE: Program transfer from PC to DM41X
(08-12-2024 12:49 PM)CheshireChris Wrote:  ... possibility of typing in a program in a text editor on a PC and then importing it to the calculator?

I myself created an interface between different calculators and emulators (HP-41CV/CX via Barcode, DM41X, DM41L, PX41CX, go41X, Vb41CX, V41...)
And if you do not want to use my programs you will find on my site a page (Tools/41Family) which lists the main other tools without forgetting the "DM41 programming tool" from SwissMicros:

http://ti58c.phweb.me
http://clones.phweb.me
http://www.instagram.com/ti58c
"No! Do or Do not. There is no try!" [Master Yoda]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-13-2024, 07:12 PM
Post: #6
RE: Program transfer from PC to DM41X
A drawing is worth more than a long speech...

[Image: interf_EN.jpg]

http://ti58c.phweb.me
http://clones.phweb.me
http://www.instagram.com/ti58c
"No! Do or Do not. There is no try!" [Master Yoda]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-13-2024, 08:05 PM
Post: #7
RE: Program transfer from PC to DM41X
(08-13-2024 07:12 PM)Pierre Wrote:  A drawing is worth more than a long speech...

[Image: interf_EN.jpg]

What is the software in the centre of the picture, Pierre?

Chris
Find all posts by this user
Quote this message in a reply
08-13-2024, 08:40 PM
Post: #8
RE: Program transfer from PC to DM41X
(08-13-2024 08:05 PM)CheshireChris Wrote:  What is the software in the centre of the picture, Pierre?

Just my interface program written in Excel.
I called it PX41CX because I wrote it for this calculator that I was testing as a prototype. (now its creator has started to commercialize it).
I also have an HP-41CV, a DM41L, a DM41X and emulators on PC and Android... so I exchange my programs which I print on paper (plus the barcode) and which I put in a binder.. .
The easiest way is to go to my "clones" site to understand...
I also wrote other interfaces (10C, 11C, 15C, 32LC, 42LC, DM32)
My site is in French and also in English.
I answer questions without worries.

http://ti58c.phweb.me
http://clones.phweb.me
http://www.instagram.com/ti58c
"No! Do or Do not. There is no try!" [Master Yoda]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-13-2024, 09:13 PM
Post: #9
RE: Program transfer from PC to DM41X
(08-13-2024 08:40 PM)Pierre Wrote:  Just my interface program written in Excel.
I called it PX41CX because I wrote it for this calculator that I was testing as a prototype. (now its creator has started to commercialize it).
I also have an HP-41CV, a DM41L, a DM41X and emulators on PC and Android... so I exchange my programs which I print on paper (plus the barcode) and which I put in a binder.. .
The easiest way is to go to my "clones" site to understand...
I also wrote other interfaces (10C, 11C, 15C, 32LC, 42LC, DM32)
My site is in French and also in English.
I answer questions without worries.

Thank you!

Chris
Find all posts by this user
Quote this message in a reply
11-18-2024, 07:47 PM
Post: #10
RE: Program transfer from PC to DM41X
Hey Pierre - just saw this wonderful tool you wrote in Excel yesterday. Nicely done! It's exactly what I was looking for. This morning I decided to test it out and copy a RAW program onto the DM41X Flash drive, but had limited success. I'm probably missing something, somewhere.

I printed a small program from my 41CL to the most excellent ILPer printer via my Pilbox. I copied the listing into a TXT file, then loaded it into your "Interface" using the "Load TXT file" button as follows

01*LBL 'DMPREG'
02 XEQ 00
03 'DATA REG DUMP:'
04 ACA
05 PRBUF
06 54.059
07 PRREGX
08 60.069
09 PRREGX
10 70.079
11 PRREGX
12 XEQ 00
13 XEQ 00
14 XEQ 00
15 RTN
16*LBL 00
17 ADV
18 ADV
19 RTN
20 END
EOF

Next I clicked on "Compile" and received this listing:

10 11 1B
10 12 1B 10 10
10 13 1B
10 14
10 15 00
10 16 15 14 1A 10 15 19
10 17 1B 00
10 18 16 10 1A 10 16 19
10 19 1B 00
11 10 17 10 1A 10 17 19
11 11 1B
11 12 1B 10 10
11 13 1B 10 10
11 14 1B 10 10
11 15
11 16 10 10
11 17
11 18
11 19
12 10 1B

Next, on the RAW panel I clicked the "Create" button, then saved the RAW file to the PC.

To check the file integrity, I decided to load the RAW file and decode it. Using the "Decode" button on the RAW panel, I was surprised to see this listed:

01 E02 E0003 E0405
0654.05907 E
0860.06909 E
1070.07911 E12 E0013 E0014 E0015160017181920 E

What??
Thinking I probably didn't do something correctly, I went ahead and loaded the RAW file onto the DM41X flash drive, then loaded it into the program section of the calculator. I turned the DM41X OFF, then back ON and went to Program mode. I see the exact same thing as the Decode function output in the above listing. Looks like I'm missing a step or two someplace - can you "hood a brutha up"? Thx -Max
Find all posts by this user
Quote this message in a reply
11-18-2024, 08:15 PM
Post: #11
RE: Program transfer from PC to DM41X
Hi Max,

Sorry but your program contains instructions that I do not use: ACA, PRBUF, PRREGX
They come from the ROM "29 Printer (HP82143 non HP-IL)" that I do not process.
If these instructions are really essential I have to see if I can code them without calling into question the other ROMs already processed. (TIME 2C, CX TIME, EXT FCN 2D, CX EXT FCN, Card Reader, HP-67 emulation, ADV CONV B, ADV CONV B, ADV MATH, ADV TVM)
If you want to send me the RAW file I can give you my email in a private message.

Best Regards
Pierre

http://ti58c.phweb.me
http://clones.phweb.me
http://www.instagram.com/ti58c
"No! Do or Do not. There is no try!" [Master Yoda]
Visit this user's website Find all posts by this user
Quote this message in a reply
11-18-2024, 09:24 PM
Post: #12
RE: Program transfer from PC to DM41X
Thanks, Pierre. Good info!
The functions you list are common to both the 82160 HP-IL module and the 82143 printer ROM. I use both printers. I'm not sure how that affects your parsing routines vs conflicts with the other modules you listed. I'm not an expert on any of this, to be sure!

I would say don't bother modifying your interface code just for this. I don't want you to waste time on this just for me. I'll take a look at some of these other apps and see if I can figure something out. Right now I'm using my 41CL v5 as my primary machine. I just stumbled on the DM41X last month and decided to get one and see how it works.

BTW - I did manage to get your DECODE parsing routine to halt. I copied the code section and was going to post if for you, but accidently wiped it out before saving it. It said something like this:

IF NUMBER OF CHARS = 24 THEN
STOP
END

Thanks for your quick response on this, it's much appreciated! - Max
Find all posts by this user
Quote this message in a reply
11-18-2024, 10:54 PM
Post: #13
RE: Program transfer from PC to DM41X
(11-18-2024 09:24 PM)MaxQ Wrote:  I would say don't bother modifying your interface code just for this. I don't want you to waste time on this just for me.

I won't be bothered since I'm retired and I only do this for fun.
If I can meet the expectations of other enthusiasts then why not do it?
Best ragards
Pierre

http://ti58c.phweb.me
http://clones.phweb.me
http://www.instagram.com/ti58c
"No! Do or Do not. There is no try!" [Master Yoda]
Visit this user's website Find all posts by this user
Quote this message in a reply
11-19-2024, 09:14 AM
Post: #14
RE: Program transfer from PC to DM41X
(11-18-2024 09:24 PM)MaxQ Wrote:  BTW - I did manage to get your DECODE parsing routine to halt. I copied the code section and was going to post if for you, but accidently wiped it out before saving it. It said something like this:
IF NUMBER OF CHARS = 24 THEN
STOP
END

Hi Max,
Sorry! with all my apologies...
I'm stupid because I forgot to remove the instructions I used to trap a bug..
It's fixed! And to make up for it I added the "Printer functions" ROM so the DMPREG program compiles!
Best regards
Pierre
PS : PX41CX_Interface.zip is up to date on my web site !

http://ti58c.phweb.me
http://clones.phweb.me
http://www.instagram.com/ti58c
"No! Do or Do not. There is no try!" [Master Yoda]
Visit this user's website Find all posts by this user
Quote this message in a reply
11-19-2024, 12:48 PM
Post: #15
RE: Program transfer from PC to DM41X
Most excellent, sir!! I'll get the latest version.
Stupid?? - let me say again your concept of using Excel to make a user (very) friendly front-end (interface) for all these file transfers was pure genius, in my opinion. It's so easy to use, it's a must-have.
Find all posts by this user
Quote this message in a reply
11-19-2024, 01:24 PM
Post: #16
RE: Program transfer from PC to DM41X
(11-19-2024 12:48 PM)MaxQ Wrote:  Most excellent, sir!! I'll get the latest version.
Stupid?? - let me say again your concept of using Excel to make a user (very) friendly front-end (interface) for all these file transfers was pure genius, in my opinion. It's so easy to use, it's a must-have.

I'm glad you like it. Smile
Feel free to report bugs, or improvements that you find useful or relevant.
(in the latest version I added, for the Windows version, Craig Bladow's CC41 emulator)

http://ti58c.phweb.me
http://clones.phweb.me
http://www.instagram.com/ti58c
"No! Do or Do not. There is no try!" [Master Yoda]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 6 Guest(s)