implemented opcode parser