Problem with entering X>=Y?

Please report issues with the DM41X Beta Firmware in this sub-forum
Post Reply
Calcman54
Posts: 36
Joined: Sat Mar 10, 2018 12:24 am
Location: Toronto Canada

Problem with entering X>=Y?

Post by Calcman54 »

To get X>=Y? you must type XEQ "X>=Y?" which should resolve to X>=Y?. The problem is that it doesn't resolve. It stays as XEQ "X>=Y?" I tried X<=Y? and it works correctly. The actual keystrokes are:
XEQ
Alpha key
X
USR
Shift TAN (to get >)
USR
=Y?
Alpha key

Any ideas on what I am doing wrong? Thanks.
Wayne
User avatar
akaTB
Posts: 794
Joined: Tue May 02, 2017 1:56 pm
Location: Milan, Italy

Re: Problem with entering X>=Y?

Post by akaTB »

You are simply trying to use a non-existent conditional.
On the 41 you have to negate the test and use X<Y?

See https://literature.hpcalc.org/community ... qrg-en.pdf page 25.
Greetings,
    Massimo
ajcaton
-+×÷ left is right and right is wrong :twisted: Casted in gold
User avatar
pcscote
Posts: 169
Joined: Tue May 02, 2017 12:12 pm
Location: Québec/Canada

Re: Problem with entering X>=Y?

Post by pcscote »

X>=0?

Code: Select all

X>=0?     // missing test
INST.     // instruction to execute if true

Code: Select all

X<0?      // reverse test
FS? 30    // always false (catalog in progress flag)
INST.     // instruction to execute if true
X>=Y?

Code: Select all

X>=Y?     // missing test
INST.     // instruction to execute if true

Code: Select all

X<Y?      // reverse test
FS? 30    // always false (catalog in progress flag)
INST.     // instruction to execute if true
[DM1x/DM1xL/DM41/DM41L/DM41X/DM42]
Calcman54
Posts: 36
Joined: Sat Mar 10, 2018 12:24 am
Location: Toronto Canada

Re: Problem with entering X>=Y?

Post by Calcman54 »

That must be correct but the test is listed in one of the Hp41cx manuals.

Reference: hp41cx-om-en-vol2.pdf page 304
dlachieze
Posts: 613
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: Problem with entering X>=Y?

Post by dlachieze »

Calcman54 wrote:
Sat Oct 01, 2022 11:06 pm
That must be correct but the test is listed in one of the Hp41cx manuals.

Reference: hp41cx-om-en-vol2.pdf page 304
It’s a typo in the manual, it should be X#Y? which is mentioned on the line below and by similarity with X#0? above.
DM42: 00425 - DM41X: β00066 - WP43: 00042
User avatar
akaTB
Posts: 794
Joined: Tue May 02, 2017 1:56 pm
Location: Milan, Italy

Re: Problem with entering X>=Y?

Post by akaTB »

Calcman54 wrote:
Sat Oct 01, 2022 11:06 pm
That must be correct but the test is listed in one of the Hp41cx manuals.

Reference: hp41cx-om-en-vol2.pdf page 304
That's a typo: you can check that the same comparisons are used with regards of 0 and Y; on the line above the fourth instruction is X≠0? while on the second line, at the same position, you find that (wrong) X>=Y?. Finally, on the bottom row are mentioned x=y? and X≠Y?; this last one is not mentioned before, but it is what you really have available.

X≠Y? missing from the second line, is what should be printed there at position 4.
Greetings,
    Massimo
ajcaton
-+×÷ left is right and right is wrong :twisted: Casted in gold
Calcman54
Posts: 36
Joined: Sat Mar 10, 2018 12:24 am
Location: Toronto Canada

Re: Problem with entering X>=Y?

Post by Calcman54 »

Thanks for the explanation.
Post Reply