Inc

From WikiManual
Revision as of 10:53, 12 August 2007 by Martian (talk | contribs) (New page: Inc increases a memory address by 1. This costs nothing and is commonly used to save energy. ==Example== Note: This example assumes .tie and .deltie contains 0. <pre> cond *.robage 0...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Inc increases a memory address by 1. This costs nothing and is commonly used to save energy.

Example

Note: This example assumes .tie and .deltie contains 0.

 cond
  *.robage 0 =
 start
  .tie inc
 stop
 
 cond
  *.robage 1 =
 start
  .deltie inc
 stop

This a very common piece of code. It is used to delete the Birth Tie

 cond
  *.robage 0 =
 start
  1 .tie store
 stop
 
 cond
  *.robage 1 =
 start
  1 .deltie store
 stop

Works the same but uses a store which costs more energy.