Graphical AND/NOT/OR/XOR implementation (ASM)