An opcode identifies which basic computer operation in the instruction set is to be performed. It is used when writing machine code. It tells the computer to do something. Each machine language instruction typically has both an opcode and operands. The opcode is like a verb in a sentence, and the operands are like the subject in a sentence.