Perform two successive binary operations on same input
|
02-23-2020, 09:39 AM
(This post was last modified: 02-23-2020 09:44 AM by Csaba Tizedes.)
Post: #5
|
|||
|
|||
RE: Perform two successive binary operations on same input
(02-23-2020 01:03 AM)cdmackay Wrote: I often want to perform two successive binary operations... Sure! Check the attachment, there is my opinion about "Tricky-Genius-Programming-Style" - just as a practical engineer point of view... So, with STO and RCL, with one flag and with lots of labels: LBL A and LBL B: the two binary operation LBL S: store the stack status LBL T: store previous result LBL R: restore the stack status variable R: previous result flag 0: set, if the stack X is the previous result for the first running clear the flag 0 Code:
Csaba https://www.hpmuseum.org/forum/attachment.php?aid=8104 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Perform two successive binary operations on same input - cdmackay - 02-23-2020, 01:03 AM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 01:53 AM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 01:55 AM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 07:34 AM
RE: Perform two successive binary operations on same input - Csaba Tizedes - 02-23-2020 09:39 AM
RE: Perform two successive binary operations on same input - ttw - 02-23-2020, 04:10 PM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 05:23 PM
|
User(s) browsing this thread: 1 Guest(s)