Post Reply 
Comparisons with zero on HP-65
08-29-2017, 10:20 PM (This post was last modified: 08-29-2017 10:22 PM by Dieter.)
Post: #4
RE: Comparisons with zero on HP-65
(08-29-2017 10:14 PM)Matt Agajanian Wrote:  Nope! But, I just thought I'd ask and see if our group had clever shortcuts to allow X to stay in the X register instead of being pushed into Y.

X doesn't have to get pushed to Y. You can always add another step and add an X<>Y.
Or you simply place the zero before the value which is compared to 0 is calculated:

Instead of...
Code:
RCL 1
RCL 2
x
RCL 3
RCL 4
x
+
0
X<>Y    ; optional
X=Y?
...

...simply do it this way:
Code:
0
RCL 1
RCL 2
x
RCL 3
RCL 4
x
+
X=Y?
...

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Comparisons with zero on HP-65 - Dieter - 08-29-2017 10:20 PM



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