# csim A programming game. # Instructions |Command |Req InstSet | Req Mobile | Description | |-------------------|------------|------------|-------------------------------------------------| |CREATE a,b,c | 2 | 0 | | |MOVE | 0 | 1 | | |DIE | 0 | 0 | | |TRANS a,b | 1 | 0 | | |RTRANS a,b | 1 | 0 | | |TURN a | 0 | 0 | | |JUMP a | 0 | 0 | | |AJUMP a | 0 | 0 | | |BJUMP a,b | 0 | 0 | | |SCAN #a | 1 | 0 | | |FARSCAN #a, #b, c | 1 | 0 | | |SET #a,b | 0 | 0 | #a = b | |ADD #a,b | 0 | 0 | #a = #a + b | |SUB #a,b | 0 | 0 | #a = #a - b | |MUL #a,b | 0 | 0 | #a = #a * b | |DIV #a,b | 0 | 0 | #a = #a / b | |MOD #a,b | 0 | 0 | #a = #a % b | |MIN #a,b | 0 | 0 | #a = min(#a, b) | |MAX #a,b | 0 | 0 | #a = max(#a, b) | |RANDOM #a,b,c | 0 | 0 | #a = b + (rand() % (c - b + 1)) | |IF a,b | 0 | 0 | Execute next instruction if a == b else skip it | |IFN a,b | 0 | 0 | Execute next instruction if a != b else skip it | |IFG a,b | 0 | 0 | Execute next instruction if a > b else skip it | |IFL a,b | 0 | 0 | Execute next instruction if a < b else skip it | |IFGE a,b | 0 | 0 | Execute next instruction if a >= b else skip it | |IFLE a,b | 0 | 0 | Execute next instruction if a <= b else skip it | |INIT a,b | 0 | 0 | | |BREAK | 0 | 0 | | |RESUME | 0 | 0 | | |SEIZE | 0 | 0 | | |SLEEP | 0 | 0 | | |QUIT | 0 | 0 | |