Which calculators had no known bugs?

08062017, 05:40 AM
(This post was last modified: 08062017 05:47 AM by Joe Horn.)
Post: #22




RE: Which calculators had no known bugs?
(08052017 11:07 PM)Geir Isene Wrote: I'm interested in this one: An example is worth a thousand words. Here's a "split logic" threeway branch: 1. 0 2. g X<>Y 3. GTO 4. g X≠Y 5. g X>Y 6. 3 7. 2 8. 1 This routine is equivalent to the following pseudocode: IF X>Y THEN GTO 3 IF X<Y THEN GTO 1 IF X=Y THEN GTO 2 Remember, the HP65 skips TWO steps if the test is false. What "Lampman Split Logic" does is insert one or more logical comparisons between a command prefix (e.g. GTO or STO) and its argument. It worked for all the commands (except RTN and SST) on rows 2 and 3 of the HP65 keyboard. It therefore allowed not only short threeway branching, but also short threeway storing, and any number of combinations of functions (e.g. perform a SIN or COS depending on the result of a test) with minimal program steps. The original writeup can be found in 65 Notes, V2 N1 P78 (January 1975). <0ɸ0> Joe 

« Next Oldest  Next Newest »

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