User Tools

Site Tools


cw4:rpl_language_overview

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
cw4:rpl_language_overview [2021/01/09 11:01] Karsten75cw4:rpl_language_overview [2021/01/09 12:37] Karsten75
Line 22: Line 22:
      
 Either of the scripts above will read the two most recent arguments on the stack (4 and 5), add them and push the sum on to the stack. After the instruction has completed, there will be two numbers on the stack. The "2" from your original entry, and "9" - the sum of the two arguments added by the "add" instruction.  The stack would now look like this: Either of the scripts above will read the two most recent arguments on the stack (4 and 5), add them and push the sum on to the stack. After the instruction has completed, there will be two numbers on the stack. The "2" from your original entry, and "9" - the sum of the two arguments added by the "add" instruction.  The stack would now look like this:
-<code prpl>2 9</code>+<code 4rpl>2 9</code>
  
 <note> <note>
Line 37: Line 37:
  
  
-<code prpl># This is how we add two of the three numbers+<code 4rpl># This is how we add two of the three numbers
 # that are on the stack # that are on the stack
 # Below is code         #  Below is a comment # Below is code         #  Below is a comment
cw4/rpl_language_overview.txt · Last modified: 2021/01/09 13:07 by Karsten75