Advertisement
zaq_hack

Timing Loop v1

Mar 14th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. [
  2. {
  3. "pos": {
  4. "x": 2,
  5. "y": 2
  6. },
  7. "opcode": {
  8. "id": "do_setvar",
  9. "primary": "R",
  10. "parameters": [
  11. {
  12. "type": "integer",
  13. "value": {
  14. "v": 0
  15. }
  16. }
  17. ]
  18. }
  19. },
  20. {
  21. "pos": {
  22. "x": 3,
  23. "y": 3
  24. },
  25. "opcode": {
  26. "id": "do_wire",
  27. "primary": "D",
  28. "parameters": []
  29. }
  30. },
  31. {
  32. "pos": {
  33. "x": 1,
  34. "y": 2
  35. },
  36. "opcode": {
  37. "id": "eval_number",
  38. "primary": "R",
  39. "parameters": [
  40. {
  41. "type": "number",
  42. "value": {
  43. "v": 0
  44. }
  45. }
  46. ]
  47. }
  48. },
  49. {
  50. "pos": {
  51. "x": 3,
  52. "y": 4
  53. },
  54. "opcode": {
  55. "id": "do_log",
  56. "primary": "D",
  57. "parameters": [
  58. {
  59. "type": "string",
  60. "value": {
  61. "v": "-----"
  62. }
  63. }
  64. ]
  65. }
  66. },
  67. {
  68. "pos": {
  69. "x": 0,
  70. "y": 2
  71. },
  72. "opcode": {
  73. "id": "ev_timer",
  74. "primary": "R",
  75. "parameters": [
  76. {
  77. "type": "integer",
  78. "value": {
  79. "v": 100
  80. }
  81. },
  82. {
  83. "type": "boolean",
  84. "value": {
  85. "null": true
  86. }
  87. }
  88. ]
  89. }
  90. },
  91. {
  92. "pos": {
  93. "x": 3,
  94. "y": 5
  95. },
  96. "opcode": {
  97. "id": "do_stop",
  98. "parameters": []
  99. }
  100. },
  101. {
  102. "pos": {
  103. "x": 5,
  104. "y": 0
  105. },
  106. "opcode": {
  107. "id": "do_concat",
  108. "primary": "L",
  109. "parameters": [
  110. {
  111. "type": "string",
  112. "value": {
  113. "v": "System "
  114. }
  115. },
  116. {
  117. "type": "string",
  118. "value": {
  119. "var": 0
  120. }
  121. }
  122. ]
  123. }
  124. },
  125. {
  126. "pos": {
  127. "x": 4,
  128. "y": 0
  129. },
  130. "opcode": {
  131. "id": "do_log",
  132. "primary": "L",
  133. "parameters": [
  134. {
  135. "type": "string",
  136. "value": {
  137. "fun": "last_str"
  138. }
  139. }
  140. ]
  141. }
  142. },
  143. {
  144. "pos": {
  145. "x": 5,
  146. "y": 1
  147. },
  148. "opcode": {
  149. "id": "do_setvar",
  150. "primary": "U",
  151. "parameters": [
  152. {
  153. "type": "integer",
  154. "value": {
  155. "v": 0
  156. }
  157. }
  158. ]
  159. }
  160. },
  161. {
  162. "pos": {
  163. "x": 3,
  164. "y": 0
  165. },
  166. "opcode": {
  167. "id": "do_wire",
  168. "primary": "D",
  169. "parameters": []
  170. }
  171. },
  172. {
  173. "pos": {
  174. "x": 5,
  175. "y": 2
  176. },
  177. "opcode": {
  178. "id": "do_add_numbers",
  179. "primary": "U",
  180. "parameters": [
  181. {
  182. "type": "number",
  183. "value": {
  184. "var": 0
  185. }
  186. },
  187. {
  188. "type": "number",
  189. "value": {
  190. "v": 1
  191. }
  192. }
  193. ]
  194. }
  195. },
  196. {
  197. "pos": {
  198. "x": 3,
  199. "y": 1
  200. },
  201. "opcode": {
  202. "id": "do_delay",
  203. "primary": "D",
  204. "parameters": [
  205. {
  206. "type": "integer",
  207. "value": {
  208. "v": 7
  209. }
  210. }
  211. ]
  212. }
  213. },
  214. {
  215. "pos": {
  216. "x": 4,
  217. "y": 2
  218. },
  219. "opcode": {
  220. "id": "do_message",
  221. "primary": "R",
  222. "parameters": [
  223. {
  224. "type": "string",
  225. "value": {
  226. "v": "Master"
  227. }
  228. },
  229. {
  230. "type": "integer",
  231. "value": {
  232. "var": 0
  233. }
  234. },
  235. {
  236. "type": "integer",
  237. "value": {
  238. "null": true
  239. }
  240. }
  241. ]
  242. }
  243. },
  244. {
  245. "pos": {
  246. "x": 3,
  247. "y": 2
  248. },
  249. "opcode": {
  250. "id": "test_loop",
  251. "primary": "R",
  252. "secondary": "d",
  253. "parameters": [
  254. {
  255. "type": "integer",
  256. "value": {
  257. "v": 0
  258. }
  259. },
  260. {
  261. "type": "integer",
  262. "value": {
  263. "v": 7
  264. }
  265. }
  266. ]
  267. }
  268. }
  269. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement