HP Forums
Weird Command in a Program - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Weird Command in a Program (/thread-10331.html)



Weird Command in a Program - Neve - 03-16-2018 06:05 PM

Hi,

I’m trying to key in a program I found on the Net. However, there is a command I’ve never seen before: X#Y?
Does anyone know what this is and/or how to key it in?

Thanks for your help.


RE: Weird Command in a Program - SlideRule - 03-16-2018 06:13 PM

(03-16-2018 06:05 PM)Neve Wrote:  … there is a command I’ve never seen before: X#Y? Does anyone know what this is and/or how to key it in? …
Knowing the program in question (or at least the URL referencing same) would definitely help, a plausible interpretation is the number (#) symbol is a substitute for the not equal ()symbol.

BEST!
SlideRule


RE: Weird Command in a Program - Dieter - 03-16-2018 06:16 PM

(03-16-2018 06:05 PM)Neve Wrote:  I’m trying to key in a program I found on the Net. However, there is a command I’ve never seen before: X#Y?
Does anyone know what this is and/or how to key it in?

Most probably that's simply a x≠y? test.
Since "≠" is not a simple ASCII character it is often written as x!=y?, x<>y? or x#y?.

Dieter


RE: Weird Command in a Program - Neve - 03-16-2018 06:35 PM

OK then. How do I key it in then? X<>Y?

Here’s the link, ligne 68: http://hp41programs.yolasite.com/pessah.php

Thanks


RE: Weird Command in a Program - Neve - 03-16-2018 06:37 PM

(03-16-2018 06:13 PM)SlideRule Wrote:  
(03-16-2018 06:05 PM)Neve Wrote:  … there is a command I’ve never seen before: X#Y? Does anyone know what this is and/or how to key it in? …
Knowing the program in question (or at least the URL referencing same) would definitely help, a plausible interpretation is the number (#) symbol is a substitute for the not equal ()symbol.

BEST!
SlideRule

I thought of that too. But I don’t know how to key it in.


RE: Weird Command in a Program - Thomas Okken - 03-16-2018 06:42 PM

The ≠ symbol is Shift H.

On the HP-41C and CV, there is a cheat sheet of the ALPHA key assignments, including all the shifted ones, on the back of the calculator. The 41CX expects you to know all that, and shows ED mode key assignments instead.


RE: Weird Command in a Program - Dieter - 03-16-2018 06:51 PM

(03-16-2018 06:37 PM)Neve Wrote:  I thought of that too. But I don’t know how to key it in.

It's the same as with any other command that is not on the HP41 keyboard: Use [XEQ] and spell the command letter by letter.

[XEQ]  [ALPHA]  X  [Shift] H  Y  ?  [ALPHA]

The ≠ character is Shift-H in alpha mode.

Dieter


RE: Weird Command in a Program - Neve - 03-16-2018 06:59 PM

Thanks all. I had totally forgotten about the cheat sheet on the back!
It’s been too long since I’ve really dug into the 41.

Cheers


RE: Weird Command in a Program - Neve - 03-16-2018 07:22 PM

One other question if I may:

What is E2 ligne 107?


RE: Weird Command in a Program - Gene - 03-16-2018 07:40 PM

A shortcut for 1 E2.

Just press 1 EEX and 2.

The "1" is not really necessary and synthetic programming allowed for the entry of these numerical program lines without the extra byte of a 1.


RE: Weird Command in a Program - hth - 03-16-2018 07:41 PM

E2 is 1 E2 without the leading one (which is redundant, but goes there when you type it from the keyboard), in other words 100.

It saves a byte and executes a little bit faster.

Just use 100 (or 1 E2).

Håkan


RE: Weird Command in a Program - Neve - 03-16-2018 08:42 PM

Thank you all so much!!


RE: Weird Command in a Program - Neve - 03-17-2018 12:16 AM

Thank you all so much!!