Difference between revisions of "Sgnstore"

From WikiManual
Jump to: navigation, search
(Created page with "Takes a memory location and sets its value to 1,0, or -1 depending if the memory location is positive or negative or zero.")
 
 
Line 1: Line 1:
 
Takes a memory location and sets its value to 1,0, or -1 depending if the memory location is positive or negative or zero.
 
Takes a memory location and sets its value to 1,0, or -1 depending if the memory location is positive or negative or zero.
 +
 +
examples:
 +
 +
''Given'' 10 .up store
 +
 +
.up sgnstore ''same as'' *.up sgn .up store ''is equal to'' 1
 +
 +
''Given'' 0 .up store
 +
 +
.up sgnstore ''same as'' *.up sgn .up store ''is equal to'' 0
 +
 +
''Given'' -1 .up store
 +
 +
.up sgnstore ''same as'' *.up sgn .up store ''is equal to'' -1

Latest revision as of 09:46, 1 July 2014

Takes a memory location and sets its value to 1,0, or -1 depending if the memory location is positive or negative or zero.

examples:

Given 10 .up store
.up sgnstore same as *.up sgn .up store is equal to 1
Given 0 .up store
.up sgnstore same as *.up sgn .up store is equal to 0
Given -1 .up store
.up sgnstore same as *.up sgn .up store is equal to -1