Inc

From WikiManual
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.