summaryrefslogtreecommitdiff
path: root/examples/not8.qua
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2018-03-24 15:47:21 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2018-03-24 15:47:21 -0400
commitce1ea2031f4d2a8852323e978962ac0dfbbdfd1b (patch)
treeaee4487e3baca589a897e187f133f61907b9d48c /examples/not8.qua
parent30d0d4fca28d448f413d6db1c04f245882f2bf3f (diff)
Added NOT8 & AND8
Diffstat (limited to 'examples/not8.qua')
-rw-r--r--examples/not8.qua72
1 files changed, 72 insertions, 0 deletions
diff --git a/examples/not8.qua b/examples/not8.qua
new file mode 100644
index 0000000..b4541e5
--- /dev/null
+++ b/examples/not8.qua
@@ -0,0 +1,72 @@
+x y speedX speedY color
+# First bit
+1 0 0 0 PU
+1 -1 0 0 RE
+1 9 0 0 !not.qua
+2 11 0 0 GA
+3 11 0 0 CY
+
+# Second bit
+6 1 0 0 PU
+6 0 0 0 RE
+6 9 0 0 !not.qua
+7 12 0 0 GA
+8 12 0 0 CY
+
+# Third bit
+11 2 0 0 PU
+11 1 0 0 RE
+11 9 0 0 !not.qua
+12 13 0 0 GA
+13 13 0 0 CY
+
+# Fourth bit
+16 3 0 0 PU
+16 2 0 0 RE
+16 9 0 0 !not.qua
+17 14 0 0 GA
+18 14 0 0 CY
+
+# Fifth bit
+21 4 0 0 PU
+21 3 0 0 RE
+21 9 0 0 !not.qua
+22 15 0 0 GA
+23 15 0 0 CY
+
+
+# Sixth bit
+26 5 0 0 PU
+26 4 0 0 RE
+26 9 0 0 !not.qua
+27 16 0 0 GA
+28 16 0 0 CY
+
+
+# Seventh bit
+31 6 0 0 PU
+31 5 0 0 RE
+31 9 0 0 !not.qua
+32 17 0 0 GA
+33 17 0 0 CY
+
+
+# Eighth bit
+36 7 0 0 PU
+36 6 0 0 RE
+36 9 0 0 !not.qua
+37 18 0 0 GA
+38 18 0 0 CY
+
+# NOT8
+# Inputs: 0, 0
+# 0, 1
+# 0, 2
+# ...
+# 0, 7
+# Outputs: 38, 11
+# 38, 12
+# 38, 13
+# ...
+# 38, 18
+# Time: 60 \ No newline at end of file