Created
October 6, 2017 20:11
-
-
Save pfmoore/66a856ebf7b26e545ec6438f3168ad19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "pos": { | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "opcode": { | |
| "id": "ev_rs_on", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "side", | |
| "value": { | |
| "side": "north" | |
| } | |
| }, | |
| { | |
| "type": "boolean", | |
| "value": { | |
| "v": true | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 0, | |
| "y": 1 | |
| }, | |
| "opcode": { | |
| "id": "eval_slots", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "inventory", | |
| "value": { | |
| "side": "up" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 0, | |
| "y": 2 | |
| }, | |
| "opcode": { | |
| "id": "do_subtract", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "fun": "last_int" | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 1 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 4, | |
| "y": 6 | |
| }, | |
| "opcode": { | |
| "id": "eval_getitem", | |
| "primary": "R", | |
| "parameters": [ | |
| { | |
| "type": "inventory", | |
| "value": { | |
| "side": "up" | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "var": 2 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 0, | |
| "y": 3 | |
| }, | |
| "opcode": { | |
| "id": "do_setvar", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 0 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 2, | |
| "y": 5 | |
| }, | |
| "opcode": { | |
| "id": "do_delay", | |
| "primary": "L", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 10 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 4, | |
| "y": 7 | |
| }, | |
| "opcode": { | |
| "id": "do_wire", | |
| "primary": "R", | |
| "parameters": [] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 0, | |
| "y": 4 | |
| }, | |
| "opcode": { | |
| "id": "eval_slots", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "inventory", | |
| "value": { | |
| "side": "down" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 2, | |
| "y": 6 | |
| }, | |
| "opcode": { | |
| "id": "do_setvar", | |
| "primary": "R", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 2 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 0, | |
| "y": 5 | |
| }, | |
| "opcode": { | |
| "id": "do_subtract", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "fun": "last_int" | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 1 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 2, | |
| "y": 7 | |
| }, | |
| "opcode": { | |
| "id": "do_wire", | |
| "primary": "R", | |
| "parameters": [] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 4, | |
| "y": 9 | |
| }, | |
| "opcode": { | |
| "id": "test_gt", | |
| "primary": "L", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "var": 3 | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 0 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 0, | |
| "y": 6 | |
| }, | |
| "opcode": { | |
| "id": "do_setvar", | |
| "primary": "R", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 1 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 2, | |
| "y": 8 | |
| }, | |
| "opcode": { | |
| "id": "test_loop", | |
| "primary": "R", | |
| "secondary": "u", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 4 | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "var": 1 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 2, | |
| "y": 9 | |
| }, | |
| "opcode": { | |
| "id": "do_setvar", | |
| "primary": "U", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 4 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 5, | |
| "y": 6 | |
| }, | |
| "opcode": { | |
| "id": "do_fetchitems", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "inventory", | |
| "value": { | |
| "side": "up" | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "var": 2 | |
| } | |
| }, | |
| { | |
| "type": "item", | |
| "value": { | |
| "fun": "last_item" | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "null": true | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 0 | |
| } | |
| }, | |
| { | |
| "type": "boolean", | |
| "value": { | |
| "null": true | |
| } | |
| }, | |
| { | |
| "type": "boolean", | |
| "value": { | |
| "null": true | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 3, | |
| "y": 5 | |
| }, | |
| "opcode": { | |
| "id": "do_wire", | |
| "primary": "L", | |
| "parameters": [] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 5, | |
| "y": 7 | |
| }, | |
| "opcode": { | |
| "id": "eval_countinvint", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 0 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 3, | |
| "y": 6 | |
| }, | |
| "opcode": { | |
| "id": "test_loop", | |
| "primary": "R", | |
| "secondary": "u", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 2 | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "var": 0 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 5, | |
| "y": 8 | |
| }, | |
| "opcode": { | |
| "id": "do_setvar", | |
| "primary": "D", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 3 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 1, | |
| "y": 5 | |
| }, | |
| "opcode": { | |
| "id": "do_wire", | |
| "primary": "D", | |
| "parameters": [] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 3, | |
| "y": 7 | |
| }, | |
| "opcode": { | |
| "id": "do_wire", | |
| "primary": "R", | |
| "parameters": [] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 5, | |
| "y": 9 | |
| }, | |
| "opcode": { | |
| "id": "do_wire", | |
| "primary": "L", | |
| "parameters": [] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 1, | |
| "y": 6 | |
| }, | |
| "opcode": { | |
| "id": "eval_integer", | |
| "primary": "R", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 0 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 3, | |
| "y": 8 | |
| }, | |
| "opcode": { | |
| "id": "do_pushitems", | |
| "parameters": [ | |
| { | |
| "type": "inventory", | |
| "value": { | |
| "side": "down" | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "var": 4 | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 1 | |
| } | |
| }, | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 0 | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "pos": { | |
| "x": 3, | |
| "y": 9 | |
| }, | |
| "opcode": { | |
| "id": "eval_integer", | |
| "primary": "L", | |
| "parameters": [ | |
| { | |
| "type": "integer", | |
| "value": { | |
| "v": 0 | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment