I have a processor. Some instruction sets are AND, ADD, ANDI, ADDI. These looks like same but they are not. Can I assign same opcode for looks like same instructions sets as follows screen shot:
or sixth bit is enough to differentiate them?
In actual example of ISA, I have 13 instruction sets (AND, ADD, LD, ST, ANDI, ADDI, CMP, JUMP, JE, JA, JB, JBE, JAE). Because of size of instruction sets, I think number of opcode bits should be 4 bits and also all different instruction sets should have different opcode like ADD 0001, ADDI 0010, AND 0011, and ANDI 0100 etc.