From 5288b0429fcdac891be3bced8e21787bd452d44a Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Tue, 27 Nov 2018 22:31:13 +0200 Subject: Fixed cloning the repo on Windows --- .../81281/brainfsckInterpreter/testPrograms/pr.b | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 homework/81281/brainfsckInterpreter/testPrograms/pr.b (limited to 'homework/81281/brainfsckInterpreter/testPrograms/pr.b') diff --git a/homework/81281/brainfsckInterpreter/testPrograms/pr.b b/homework/81281/brainfsckInterpreter/testPrograms/pr.b new file mode 100644 index 0000000..1dce918 --- /dev/null +++ b/homework/81281/brainfsckInterpreter/testPrograms/pr.b @@ -0,0 +1,21 @@ +Calculate the value 256 and test if it's zero +If the interpreter errors on overflow this is where it'll happen +++++++++[>++++++++<-]>[<++++>-] ++<[>-< + Not zero so multiply by 256 again to get 65536 + [>++++<-]>[<++++++++>-]<[>++++++++<-] + +>[> + # Print "32" + ++++++++++[>+++++<-]>+.-.[-]< + <[-]<->] <[>> + # Print "16" + +++++++[>+++++++<-]>.+++++.[-]< +<<-]] >[> + # Print "8" + ++++++++[>+++++++<-]>.[-]< +<-]< +# Print " bit cells\n" ++++++++++++[>+++>+++++++++>+++++++++>+<<<<-]>-.>-.+++++++.+++++++++++.<. +>>.++.+++++++..<-.>>- +Clean up used cells. +[[-]<] -- cgit v1.3.1-26-gb76a