summaryrefslogtreecommitdiffstats
path: root/test/and.asm
diff options
context:
space:
mode:
Diffstat (limited to 'test/and.asm')
-rw-r--r--test/and.asm27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/and.asm b/test/and.asm
new file mode 100644
index 0000000..c4a15a6
--- /dev/null
+++ b/test/and.asm
@@ -0,0 +1,27 @@
+stdout X1 Y1
+
+tpu X1 Y0
+ mov 0, DOWN
+ mov 1, DOWN
+ mov 0, DOWN
+ mov 1, DOWN
+ MOV UP, NIL
+end
+
+tpu X0 Y1
+ mov 0, RIGHT
+ mov 0, RIGHT
+ mov 1, RIGHT
+ mov 1, RIGHT
+ MOV UP, NIL
+end
+
+tpu X1 Y1
+ mov 2, ACC
+ sub UP
+ sub LEFT
+ jez H
+ mov 0, DOWN
+ jro 2
+H: mov 1, DOWN
+end