From 7d73b738a5703d5263a84dcbe3564e2267af6804 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 25 Jul 2023 05:56:08 +0200 Subject: Improve parsing, make stdin / stdout port optional --- test/xor.asm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/xor.asm (limited to 'test/xor.asm') 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 -- cgit v1.2.3-71-gd317