update genOpCode()