by Florian Fischer and Dennis C. Bemmann
This document was generated automatically by RoboCom Workshop and contains specific options for the OptionSet "RC3 Standards: RoboCom 3.0 Standard Options". For general information about instructions, please take a look at the global instruction reference.
| Green | instructions are enabled in this OptionSet. |
| Red | instructions are disabled in this OptionSet. |
| a, b, c | represent any parameters |
| #a, #b, #c | represent parameters that must be variables |
| Instruction | ISet | Cycles | Description |
|---|---|---|---|
| Original Language | |||
| ADD #a, b | 0 | 2 | Add b to #a. |
| BJUMP a, b | 0 | 2 | Absoulute jump into Bank a instruction b. |
| COMP a, b | 0 | 2 | Compares value a und b. If a is not equal to b then the next instruction is executed, else it is skipped. |
| CREATE a, b, c | 2 | (100+25b) *1 if mobile +120 if mobile +40 if a=1 +100 if a=2
but no more than 1500 |
Create a robot with a Instruction set b Empty banks c Mobile |
| DIE | 0 | 1 | Destroys the robot. |
| JUMP a | 0 | 1 | Relative jump for a instructions. |
| MOVE | 0 | 20 | Moves the Robot one square. Robot must be mobile. |
| SCAN #a | 1 | 8 | Scans a field, result in #a #a=0 ...empty. #a=1 ...enemy #a=2 ...friend |
| SET #a, b | 0 | 2 | Sets #a to b. |
| SUB #a, b | 0 | 2 | Subtracts b from #a. |
| TRANS a, b | 1 | 14 + 1*n | Transfers bank a to bank b in the other robot. n = number of instructions in the bank |
| TURN a | 0 | 8 | Turn the robot by 90 degrees a=0 ...left else ...right |
| Extended Instructions | |||
| AJUMP a | 0 | 1 | Absolute jump to instruction a in the current bank. |
| DIV #a, b | 0 | 2 | Divide #a by b. | FARSCAN #a, #b, c | 1 | 10 + 3*c | Scans up to c fields straight in front of the bot. The nearest bot's type is stored in #a: #a=0 ...empty. #a=1 ...enemy #a=2 ...friend Its distance is stored in #b. |
| LCOMP a, b | 0 | 2 | Skip next instruction if a is less or equal than b. |
| GCOMP a, b | 0 | 2 | Skip next instruction if a is greater or equal than b. |
| MAX #a, b | 0 | 2 | #a is set to the greater of #a and b. |
| MIN #a, b | 0 | 2 | #a is set to the lesser of #a and b. |
| MOD #a, b | 0 | 2 | Set #a to the remainder of the integer division #a / b. |
| MUL #a, b | 0 | 2 | Multiply #a by b. |
| NCOMP a, b | 0 | 2 | Skip next instruction if a is not equal to b. |
| RANDOM #a, b, c | 0 | 2 | Generate random number into #a so that b <= #a <= b + c. |
| RTRANS a, b | 1 | 14 + 1*n | Reverse Trans: transfer the remote robot's bank a to your bank b. n = number of instructions in the bank. |
| SLEEP a | 0 | min(a, 2000) | Pause the program execution in this robot for a tasks. |
| Multitasking | |||
| BREAK | 0 | 1 | Stops execution of the other task(s) entirely and gives your task 100% priority. |
| INIT a, b | 0 | 2 | Initialize another task at bank a::instruction b. |
| RESUME | 0 | 1 | Resumes the other task(s) if it is currently suspended by SEIZE. |
| SEIZE | 0 | 1 | Stops the other task(s) and gives the current task 100% priority until a RESUME is executed. |
| SLEEP a | 0 | a | Suspend the current task a cycles and give the other tasks 100%
priority. Note: this is the only instruction which always uses real-world cycles, no matter how many tasks are running. |
| QUIT | 0 | 1 | Stops the current task entirely. If there are no tasks left, the robot dies ("Unemployment error"). |
back to global instruction reference