added switch statement for all possible opcode instructions