Sgnstore

From WikiManual
Revision as of 10:46, 1 July 2014 by Botsareus (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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