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/and.asm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/and.asm (limited to 'test/and.asm') 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 -- cgit v1.2.3-71-gd317