Post Reply 
Weird Command in a Program
03-16-2018, 06:05 PM
Post: #1
Weird Command in a Program
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.

Engineer & Senior IT Executive
2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX.
Find all posts by this user
Quote this message in a reply
03-16-2018, 06:13 PM (This post was last modified: 03-16-2018 06:13 PM by SlideRule.)
Post: #2
RE: Weird Command in a Program
(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
Find all posts by this user
Quote this message in a reply
03-16-2018, 06:16 PM
Post: #3
RE: Weird Command in a Program
(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
Find all posts by this user
Quote this message in a reply
03-16-2018, 06:35 PM
Post: #4
RE: Weird Command in a Program
OK then. How do I key it in then? X<>Y?

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

Thanks

Engineer & Senior IT Executive
2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX.
Find all posts by this user
Quote this message in a reply
03-16-2018, 06:37 PM
Post: #5
RE: Weird Command in a Program
(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.

Engineer & Senior IT Executive
2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX.
Find all posts by this user
Quote this message in a reply
03-16-2018, 06:42 PM
Post: #6
RE: Weird Command in a Program
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-16-2018, 06:51 PM
Post: #7
RE: Weird Command in a Program
(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
Find all posts by this user
Quote this message in a reply
03-16-2018, 06:59 PM
Post: #8
RE: Weird Command in a Program
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

Engineer & Senior IT Executive
2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX.
Find all posts by this user
Quote this message in a reply
03-16-2018, 07:22 PM (This post was last modified: 03-16-2018 07:31 PM by Neve.)
Post: #9
RE: Weird Command in a Program
One other question if I may:

What is E2 ligne 107?

Engineer & Senior IT Executive
2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX.
Find all posts by this user
Quote this message in a reply
03-16-2018, 07:40 PM
Post: #10
RE: Weird Command in a Program
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.
Find all posts by this user
Quote this message in a reply
03-16-2018, 07:41 PM
Post: #11
RE: Weird Command in a Program
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
Find all posts by this user
Quote this message in a reply
03-16-2018, 08:42 PM
Post: #12
RE: Weird Command in a Program
Thank you all so much!!

Engineer & Senior IT Executive
2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX.
Find all posts by this user
Quote this message in a reply
03-17-2018, 12:16 AM
Post: #13
RE: Weird Command in a Program
Thank you all so much!!

Engineer & Senior IT Executive
2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX.
Find all posts by this user
Quote this message in a reply
Post Reply 




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