|
|
(19 intermediate revisions by 5 users not shown) |
Line 1: |
Line 1: |
− | Anything you're likely to see in DNA.
| + | __NOTOC__ |
| | | |
− | === Sysvars ===
| + | Operators you're likely to see in [[Robot DNA]]. Data is stored in [[Sysvar]]s. |
− | * [[Definitions]]
| |
− | * [[.up|Movement (.up, .dn. .dx, .sx)]]
| |
− | * [[.aimdx|Basic Turning (.aimdx, .aimsx)]]
| |
− | * [[Shooting]]
| |
− | * [[Reproducing]]
| |
− | * [[Ties]]
| |
− | ** [[Soft Ties]]
| |
− | ** [[Hard Ties]]
| |
− | *** [[MB Sharing]]
| |
− | * [[Memloc and Memval]]
| |
− | * [[In and Out]]
| |
− | * [[Sysvars]] -- Work in progress
| |
| | | |
− | == Basic Commands == | + | <font size = -2>Updated for version 2.46 on 10/26/2013 by Botsareus</font> |
− | *[[add]] & [[sub]]
| + | ==Operators:== |
− | *[[mult]] & [[div]]
| |
− | *[[rnd]]
| |
− | *[[*]]
| |
− | *[[mod]]
| |
− | *[[sgn]]
| |
− | *[[abs]]
| |
− | *[[dup]]
| |
− | *[[inc/dec|inc]] & [[inc/dec|dec]]
| |
− | *[[angle]]
| |
| | | |
− | == Advanced Commands == | + | {| border="0" |
− | *[[angle]]
| + | |- |
− | *[[dist]]
| + | | |
− | *[[ceil]]
| + | {{Flow Commands}} |
− | *[[floor]]
| |
− | *[[sqr]]
| |
− | *[[pow]]
| |
− | *[[pyth]]
| |
| | | |
− | == Bitwise Commands ==
| + | {{Store Commands}} |
| | | |
− | It'd be helpful if you knew the [[bit basics]].
| + | {{Basic Commands}} |
− | *[[~]] Compliment
| |
− | *[[&]] AND
| |
− | *[[pipe| |]] OR
| |
− | *[[^]] XOR
| |
− | *[[valinc | ++]] increment stack value
| |
− | *[[valdec | --]] deincrement stack value
| |
− | *[[-]] negate stack value
| |
− | *[[Shift left | <<]] bit shift left
| |
− | *[[Shift right| >>]] bit shift right
| |
| | | |
− | == Conditions ==
| + | {{Advanced Commands}} |
− | * [[Greater than|>]]
| + | || |
− | * [[Less than|<]]
| + | {{Logical Comparison Operators}} |
− | *[[=]]
| |
− | *[[!=]]
| |
− | *[[%=]]
| |
− | *[[!%=]]
| |
− | *[[~=]]
| |
− | *[[!~=]]
| |
− | * [[Greatthan equals|>= ]]
| |
− | * [[Lessthan equals|<= ]]
| |
| | | |
− | == Logic Operators ==
| + | {{Logic}} |
− | *[[and]]
| |
− | *[[or]]
| |
− | *[[xor]]
| |
− | *[[not]]
| |
| | | |
− | == Store commands ==
| + | {{Stack Operators}} |
− | *[[store]]
| |
− | *[[inc/dec]]
| |
| | | |
− | === Flow Commands===
| + | {{Bitwise Command}} |
− | * [[cond]]
| + | |} |
− | * [[start]]
| |
− | * [[else]]
| |
− | * [[stop]]
| |
− | * [[end]]
| |
− | **[[Robot DNA]]
| |
Latest revision as of 19:45, 20 February 2014
Operators you're likely to see in Robot DNA. Data is stored in Sysvars.
Updated for version 2.46 on 10/26/2013 by Botsareus
Operators:
|
~ |
Complement
|
& |
AND
|
| |
OR
|
^ |
XOR
|
++ |
increment stack value
|
-- |
deincrement stack value
|
- |
negate stack value
|
<< |
bit shift left
|
>> |
bit shift right
|
|
|