Added selected not operation

This commit is contained in:
Lukáš Plevač 2023-11-27 19:43:29 +01:00
parent 2bedb2a82f
commit 94f60c86d1
5 changed files with 50 additions and 3 deletions

@ -8,7 +8,7 @@ define:
0 [ABC][DE]
1 [AB][CDE]
data:
data: # O(6) + O(N)
# {F} is TUE BINDING hold
1011{F}

@ -8,7 +8,7 @@ define:
0 [ABC][DE]
1 {A}[BCDE]
data:
data: # O(6)
1001111010
instructions:

@ -11,7 +11,7 @@ define:
data:
1001111010000
instructions:
instructions: # O(6)
{E*A*B*F*} # mark 10
{D*E*A*B*C*G*} # mark 11
{DEABCG} # remove mark 11

29
codes/selectedNot.asm Normal file

@ -0,0 +1,29 @@
#
# Selected NOT in DNA|SIMD
# @autor Lukáš Plevač <xpleva07@vutbr.cz>
# @date 11.27.2023
#
define:
# BIT NOT selector
0 [ABC][DE][NSE]
1 [ABCD]{E}[NSE]
NO [ABC][DE]{NSE}
Nl [ABCD]{E}{NSE}
data:
0 NO 1 Nl
instructions: # O(12)
{G*D*E*N*} # mark NOT 0 and NOT 1
{ABCD} # remove unwraped 1
{GDEN} # remove mark
{C*D*E*N*} # mark write 0
{CDEN} # remowe mark write 0 (is only posible when is unvraped for second part of zero)
{A*B*C*D*} # write 1
{ABCD} # remove not writed 1 (is unwraped by mark write 0)
{N*S*E*G*} # unwrap write 0 mark
{CDEN} # remove write 0 mark
{NSEG} # remove unwraper
{A*B*C*} {D*E*} # write 0
{N*S*E*} # lock all NOT selectors

18
codes/shiftRegister.asm Normal file

@ -0,0 +1,18 @@
#
# RULE 110 cellular automaton implementation in DNA|SIMD
# @autor Lukáš Plevač <xpleva07@vutbr.cz>
# @date 11.21.2023
#
define:
0 {A}[BCD][EF]
1 {A}{BCD}[EF]
data:
01
instructions:
# need mark for 10 and 01
{G*E*F*A*} # mark 01
#{GEFA} # remove mark 01
#{B*C*D*E*} # write 1