Post Reply 
Comparisons with zero on HP-65
08-29-2017, 10:14 PM (This post was last modified: 08-29-2017 10:15 PM by Matt Agajanian.)
Post: #3
RE: Comparisons with zero on HP-65
(08-29-2017 10:01 PM)Dieter Wrote:  
(08-28-2017 09:30 PM)Matt Agajanian Wrote:  What are some ways to achieve X and 0 comparisons which streamline program steps?

"Some ways"? I wonder if there is even one single way to compare X with 0 without placing a zero in X or Y.

The HP65 does not have tests that compare X with 0. So any method to do so has to use at least two steps. This means that "0 X=Y?" (resp. other tests) is as short as it gets. More streamlining simply is not possible.

But I'll be glad if you prove me wrong. ;-)

Dieter

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. But yes, that's about the shortest shortcut there is.

Thanks
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 - Matt Agajanian - 08-29-2017 10:14 PM



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