|
|
(24 intermediate revisions by 8 users not shown) |
Line 1: |
Line 1: |
− | For some reason the wiki is only displaying the original entry. I think. Anyway, if this message shows up at all, bear with me through the techinical difficulties.
| + | __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]]
| |
| | | |
| + | <font size = -2>Updated for version 2.46 on 10/26/2013 by Botsareus</font> |
| + | ==Operators:== |
| | | |
− | == Basic Commands == | + | {| border="0" |
− | *[[add]]
| + | |- |
− | *[[sub]]
| + | | |
− | *[[mult]]
| + | {{Flow Commands}} |
− | *[[div]]
| |
− | *[[rnd]]
| |
− | *[[*]]
| |
− | *[[mod]]
| |
− | *[[sgn]]
| |
− | *[[abs]]
| |
− | *[[dup]]
| |
| | | |
− | == Advanced Commands ==
| + | {{Store Commands}} |
− | *[[angle]]
| |
− | *[[dist]]
| |
− | *[[ceil]]
| |
− | *[[floor]]
| |
− | *[[sqr]]
| |
− | *[[pow]]
| |
− | *[[pyth]]
| |
| | | |
− | == Bitwise Commands ==
| + | {{Basic Commands}} |
| | | |
− | It'd be helpful if you knew the [[bit basics]].
| + | {{Advanced Commands}} |
− | *[[~]] Compliment
| + | || |
− | *[[&]] AND
| + | {{Logical Comparison Operators}} |
− | *[[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 ==
| + | {{Logic}} |
− | * [[Greater than|>]]
| |
− | * [[Less than|<]]
| |
− | *[[=]]
| |
− | *[[!=]]
| |
− | *[[%=]]
| |
− | *[[!%=]]
| |
− | *[[~=]]
| |
− | *[[!~=]]
| |
− | * [[Greatthan equals|>= ]]
| |
− | * [[Lessthan equals|<= ]]
| |
| | | |
− | == Logic Operators ==
| + | {{Stack Operators}} |
− | *[[and]]
| |
− | *[[or]]
| |
− | *[[xor]]
| |
− | *[[not]]
| |
| | | |
− | == Store commands ==
| + | {{Bitwise Command}} |
− | *[[store]]
| + | |} |
− | *[[inc/dec]]
| |
− | | |
− | === Flow Commands===
| |
− | * [[cond]]
| |
− | * [[start]]
| |
− | * [[else]]
| |
− | * [[stop]]
| |
− | * [[end]]
| |
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
|
|
|