Opcode generation