Thread Closed 
HP-25/SR-56 Identical Conditionals
10-14-2021, 06:02 PM
Post: #15
RE: HP-25/SR-56 Identical Conditionals
(10-14-2021 05:00 PM)Dave Britten Wrote:  Well, I did provide an example, but it was in the format seen on a TI where you can actually do this. But if we imagine an HP with a DSNZ function, you could replace the original loop early exit:

...loop body...
DSZ 4
GTO 0
GTO 9 //exit loop
LBL 0
...rest of the loop body...

...with this:

...loop body...
DSNZ 4
GTO 9 //exit loop
...rest of the loop body...


Look, Dave, what you've given above is not an example of actual non-contrived code using the DSNZ function, you've just given an Owner's Handbook-style code bit picturing what it does.

I don't mean to play games with you, what I want is some sample code which does something non-contrived that shows the alleged "usefulness" and "cleanness" afforded by this DSNZ instruction, let's say similarly to how a simple implementation of the factorial function does clearly demonstrate the usefulness of the regular DSZ instruction.

Can you provide it, yes or no ?

Thanks and regards.
V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Thread Closed 


Messages In This Thread
RE: HP-25/SR-56 Identical Conditionals - Valentin Albillo - 10-14-2021 06:02 PM



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