|
|
@@ -1,5 +1,5 @@
|
|
|
# csim
|
|
|
-A programming game.
|
|
|
+A programming game based on RoboCom.
|
|
|
|
|
|
# Instructions
|
|
|
| Command | InstSet | Mobile | Description | Failures |
|
|
|
@@ -35,4 +35,18 @@ A programming game.
|
|
|
| RESUME | 0 | 0 | Resume all other tasks suspended by SEIZE | |
|
|
|
| SEIZE | 0 | 0 | Stops other tasks, gives current task 100% until RESUME | |
|
|
|
| SLEEP a | 0 | 0 | Suspend current task a cycles | |
|
|
|
-| QUIT | 0 | 0 | Stops current task | |
|
|
|
+| QUIT | 0 | 0 | Stops current task | |
|
|
|
+
|
|
|
+# Failure codes
|
|
|
+| Code | Description |
|
|
|
+|------|--------------------------------------------------------------------------------|
|
|
|
+| ET | Elimination Trigger released |
|
|
|
+| DH | Data Hunger (Bank 1 empty and executed) |
|
|
|
+| DZ | Division by zero |
|
|
|
+| IB | Invalid bank number (e.g. in TRANS or BJUMP) |
|
|
|
+| IS | Higher Instruction Set required |
|
|
|
+| MO | Mobility required |
|
|
|
+| DI | DIE executed |
|
|
|
+| IP | Invalid parameter (e.g. CREATE x, -1, x) |
|
|
|
+| UE | No more tasks left in a robot (Unemployment) |
|
|
|
+| ID | Instruction duration too high (i.e. > MaxInstrDur) |
|