Difference between revisions of "Store"

From WikiManual
Jump to: navigation, search
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''Overview'''
+
==[[Operators]]:==
 +
{{Store Commands}}
  
 
Stores the second value on the stack into the memory location specified by the top value.
 
Stores the second value on the stack into the memory location specified by the top value.
  
Syntax
+
Syntax:
*x y store
+
x y store
  
 
Where 'x' is the value to be stored, and 'y' is the memory location.
 
Where 'x' is the value to be stored, and 'y' is the memory location.
Line 10: Line 11:
 
or
 
or
  
store
+
store
  
Compared to the first, the lonely store-command works on the numbers on the stack, what ever they are.
+
Compared to the first, the lonely store-command works on the numbers on the [[stack]], what ever they are. Famous for emptiing the stack and energy at once.
 
 
 
 
===Operators===
 
* [[store]]
 
* [[rnd]]
 
* [[add]]
 
* [[sub]]
 
* [[mult]]
 
* [[div]]
 
* [[inc/dec]]
 

Latest revision as of 21:41, 23 December 2005

Operators:

Store Commands:

store
inc dec

The following commands are not supported in versions earlier 2.46:

addstore
substore
multstore
divstore
ceilstore
floorstore
rndstore
sgnstore
abstore
sqrstore
negstore

Stores the second value on the stack into the memory location specified by the top value.

Syntax:

x y store

Where 'x' is the value to be stored, and 'y' is the memory location.

or

store

Compared to the first, the lonely store-command works on the numbers on the stack, what ever they are. Famous for emptiing the stack and energy at once.