What is opcode, operand, offset in a given instruction?
Let me take an example : MOV AX,1000H ; Now in the above assembly language example 1. MOV is the opcode. 2. AX (register) is an operand. —> Opcode is the portion of a machine language instruction that specifies the operation to be performed. Like here MOV specifies the movement of 1000H in the AX register. —> Operand is a quality on which operation is performed. Here AX and 1000H are the operands. —> Offset within an array or other data structure object is an integer indicating the distance (displacement) from the beginning of the object up until a given element or point. In computers the memory is actually segmented and there are many segments so each segment has a base address and the offset to locate any address in that particular segment.