Post Reply 
Is there a RPN operation that does nothing? (NOP)
01-08-2018, 01:32 PM
Post: #20
RE: Is there a RPN operation that does nothing? (NOP)
None of the operations mentioned so far, other than STO ST X, X<> ST X, and ├"" (HP-42S / Free42) are true no-ops, they all depend on context for their do-nothingness.

Personally, I've never used any of these. The only reason I see to use them is to defeat the skip after ISG, which I prefer to do by not using ISG in that sense in the first place.

ISG 00
STO ST X

is inelegant; how about

1
STO+ 00

which has the virtue of making it absolutely clear what the programmer intends.

From the Jargon File:

Quote:program: n.
  1. A magic spell cast over a computer allowing it to turn one's input into error messages.
  2. An exercise in experimental epistemology.
  3. A form of art, ostensibly intended for the instruction of computers, which is nevertheless almost inevitably a failure if other programmers can't understand it.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Is there a RPN operation that does nothing? (NOP) - Thomas Okken - 01-08-2018 01:32 PM



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