From dba8571de6ed33ae974817632756d7fdaa573a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Pleva=C4=8D?= Date: Wed, 22 Nov 2023 11:24:49 +0100 Subject: [PATCH] Added celluar automaton rule28 --- codes/rule28.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 codes/rule28.asm diff --git a/codes/rule28.asm b/codes/rule28.asm new file mode 100644 index 0000000..30a58ef --- /dev/null +++ b/codes/rule28.asm @@ -0,0 +1,20 @@ +# +# RULE 110 cellular automaton implementation in DNA|SIMD +# @autor Lukáš Plevač +# @date 11.21.2023 +# + +define: + 0 [AB][CDE] + 1 [ABCD]{E} + +data: + 1001111010000 + +instructions: + {E*A*B*F*} # mark 10 + {D*E*A*B*C*G*} # mark 11 + {DEABCG} # remove mark 11 + {A*B*} {C*D*E*} # write 0 + {EABF} # remove mark 10 + {A*B*C*D*} # write 1 \ No newline at end of file