Difference between revisions of "Divstore"

From WikiManual
Jump to: navigation, search
 
Line 3: Line 3:
 
examples:
 
examples:
  
''Given'' 10 .up store
+
''Given'' 10 .up store
  
-1 .up divstore = *.up -1 div .up store = -10
+
-1 .up divstore ''same as'' *.up -1 div .up store ''is equal to'' -10
  
                          (10)
+
2 .up divstore ''same as'' *.up 2 div .up store ''is equal to'' 5
0 .up divstore = *.up 0 div .up store = 0
 

Latest revision as of 09:36, 1 July 2014

Works like div but the second variable passed is a memory location and data is divided directly into location.

examples:

Given 10 .up store
-1 .up divstore same as *.up -1 div .up store is equal to -10
2 .up divstore same as *.up 2 div .up store is equal to 5