summaryrefslogtreecommitdiffstats
path: root/test/xor.asm
diff options
context:
space:
mode:
Diffstat (limited to 'test/xor.asm')
-rw-r--r--test/xor.asm26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/xor.asm b/test/xor.asm
new file mode 100644
index 0000000..7e24812
--- /dev/null
+++ b/test/xor.asm
@@ -0,0 +1,26 @@
+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 UP, ACC
+ sub LEFT
+ jnz H
+ mov 0, DOWN
+ jro 2
+H: mov 1, DOWN
+end