I wrote an algorithm for computing the multiplication of two binary numbers. In my instruction set, there is no and instruction, just a nand(not and). I read and it logically makes sense that two nands make an and. I feel this is really simple and I'm overthinking it
So for example, if i wanted to compute the and of 3 & 1, how could i do this using two nand operations with two instructions
My ISA executes a Nand like the following and has 8 registers numbered 0-7. For example:
nand 1 2 3 (nand contents in reg1 and reg2 and store in reg3)