<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.darwinbots.com/index.php?action=history&amp;feed=atom&amp;title=Store_Commands</id>
		<title>Store Commands - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.darwinbots.com/index.php?action=history&amp;feed=atom&amp;title=Store_Commands"/>
		<link rel="alternate" type="text/html" href="http://wiki.darwinbots.com/index.php?title=Store_Commands&amp;action=history"/>
		<updated>2026-05-19T23:38:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://wiki.darwinbots.com/index.php?title=Store_Commands&amp;diff=4048&amp;oldid=prev</id>
		<title>Elite at 18:58, 13 February 2006</title>
		<link rel="alternate" type="text/html" href="http://wiki.darwinbots.com/index.php?title=Store_Commands&amp;diff=4048&amp;oldid=prev"/>
				<updated>2006-02-13T18:58:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Store commands alter the contents of memory locations&lt;br /&gt;
&lt;br /&gt;
==[[Operators]]:==&lt;br /&gt;
{{Store Commands}}&lt;br /&gt;
&lt;br /&gt;
== Store ==&lt;br /&gt;
&lt;br /&gt;
Store will store a value in a memory location:&lt;br /&gt;
&lt;br /&gt;
 a b store&lt;br /&gt;
&lt;br /&gt;
will store a into b. Rather than a and b, you are more likely to see something like this:&lt;br /&gt;
&lt;br /&gt;
 40 .up store&lt;br /&gt;
&lt;br /&gt;
which will store 40 into the [[sysvar]] [[.up]]&lt;br /&gt;
&lt;br /&gt;
== Inc and Dec ==&lt;br /&gt;
&lt;br /&gt;
Inc increases a memory location by 1&lt;br /&gt;
&lt;br /&gt;
Dec increases a memory location by 1&lt;br /&gt;
&lt;br /&gt;
You cannot inc or dec the [[sysvars]] 1 - 8.&lt;br /&gt;
&lt;br /&gt;
== 'Value Freezing' ==&lt;br /&gt;
&lt;br /&gt;
Thanks to Endy for the following:&lt;br /&gt;
&lt;br /&gt;
You can hold memory locations at certain values using inc and dec. This technique allows you to &amp;quot;freeze&amp;quot; values or to raise or lower a number to a value and then freeze it. &amp;lt;br&amp;gt;&lt;br /&gt;
This is best used for when you need a value at a constant number, but without the cost of continously storring it.&lt;br /&gt;
&lt;br /&gt;
 ' Basic method to demonstrate&lt;br /&gt;
 ' Will keep .tieloc at -1 permanently&lt;br /&gt;
 cond&lt;br /&gt;
 start&lt;br /&gt;
 .tieloc *.tieloc *.tieloc div mult inc&lt;br /&gt;
 .tieloc dec&lt;br /&gt;
 stop&lt;br /&gt;
&lt;br /&gt;
 ' More complex method demonstrates freezing&lt;br /&gt;
 ' at a value with .ploc=7&lt;br /&gt;
 cond&lt;br /&gt;
 start&lt;br /&gt;
 ' When *.ploc = 7 dec by 1&lt;br /&gt;
 .ploc *.ploc 7 sub 1000 mult add dec&lt;br /&gt;
 .ploc inc&lt;br /&gt;
 stop&lt;br /&gt;
&lt;br /&gt;
Primarily these are for use with SG's or [[Conditionless Bots|condtionless bots]] but I'm sure you all can find other uses for them. Unfortunately memory locations 1 - 8 do not allow this.&lt;/div&gt;</summary>
		<author><name>Elite</name></author>	</entry>

	</feed>