Post Reply 
DM 41l bug? User Keyboard does not work as expected
10-18-2019, 03:31 AM
Post: #1
DM 41l bug? User Keyboard does not work as expected
I am trying to set up a solver like the HP 12C solver on the Swiss Micros DM 41L. The equation I am using is:

a^2 + b = log c

where a is stored in Register 1, b is stored in Register 2, and c is stored in Register 3

My test data is:
XEQ DEMO

2.5 [ B ]
500 [ C ]
[ A ] 0.44606

1200 [ C ]
0.75 [ A ]
[ B ] 2.51668

.48 [ A ]
.33 [ B ]
[ C ] 3.63413

Demo - HP41C
Code:

01 LBL T^DEMO
02 SF 27    // turn on user mode
03 RTN

04 LBL A
05 FS? 22   // flag 22 set: in number enter mode
06 STO 01
07 FC? 22
08 GTO 01
09 CF 22
10 RTN
11 LBL 01  // calculate for a
12 RCL 03
13 LOG
14 RCL 02
15 -
16 SQRT
17 STO 01
18 RTN

19 LBL B
20 FS? 22
21 STO 02
22 FC? 22
23 GTO 02
24 CF 22
25 RTN
26 LBL 02
27 RCL 03
28 LOG
29 RCL 01
30 X↑2
31 -
32 STO 02
33 RTN

34 LBL C
35 FS? 22
36 STO 03
37 FC? 22
38 GTO 03
39 CF 22
40 RTN
41 LBL 03
42 RCL 01
43 X↑2
44 RCL 02
45 +
46 10↑X
47 STO 03
48 RTN


In user mode, what I get is:
[ A ] leads to XEQ A
[ B ] leads to XEQ B
[ C ] leads to PSE

The [ C ] doesn't appear to work as intended. So I can't store values by pressing [ C ] nor solve.

I don't know if this is a bug.

Any thoughts? Thank you in advance.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-18-2019, 04:23 AM (This post was last modified: 10-18-2019 04:39 AM by Thomas Okken.)
Post: #2
RE: DM 41l bug? User Keyboard does not work as expected
It sounds like you have an explicit assignment on the √x key, and that is taking precedence over the automatic XEQ C assignment. Try clearing that explicit assignment: Shift ASN ALPHA ALPHA √x.

EDIT — Actually, given how the DM41 keys are labeled, that should be: f ASN a a √x. Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
10-19-2019, 02:07 PM
Post: #3
RE: DM 41l bug? User Keyboard does not work as expected
Now it works, thank you Thomas! Clearing the assignment makes C work properly for this program. It's too bad we can't clear assigned keys in programs.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-19-2019, 02:39 PM
Post: #4
RE: DM 41l bug? User Keyboard does not work as expected
Actually, we can, since the DM41 emulates the 41CX, so the Extended Functions are available. You can clear all assignments with CLKEYS, and specific assignments using PASN. PASN expects the function or label name in ALPHA and the key code in X, so you can clear assignments from the unshifted √x key like so: CLA 13 PASN.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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