Electronics - Computer Hardware and Software - Discussion
Discussion Forum : Computer Hardware and Software - Filling the Blanks (Q.No. 10)
10.
The first part of a machine language instruction that specifies the operation to be performed is called a(n) __________.
Discussion:
3 comments Page 1 of 1.
Shruthi said:
7 years ago
OPCODE: It is a number interpreted by your machine that represents the operation to perform( or Opcode is an instruction that tells processor what to do with the variable or data written beside it)
Operand is a variable that stores data(and data can be a memory address or any data that we want to process).
e.g. MVI A,B
Here instruction MVI is an opcode. A & B are operands.
Same for other instructions.
MNEMONIC: English word MNEMONIC means " A device such as a pattern of letters, ideas, or associations that assists in remembering something.". So, its usually used by assembly language programmers to remember the " OPERATIONS" a machine can do, like "ADD" and "MUL" and "MOV" etc. This is assembler specific.
Operand is a variable that stores data(and data can be a memory address or any data that we want to process).
e.g. MVI A,B
Here instruction MVI is an opcode. A & B are operands.
Same for other instructions.
MNEMONIC: English word MNEMONIC means " A device such as a pattern of letters, ideas, or associations that assists in remembering something.". So, its usually used by assembly language programmers to remember the " OPERATIONS" a machine can do, like "ADD" and "MUL" and "MOV" etc. This is assembler specific.
(1)
Komali koribilli said:
1 decade ago
An opcode is used to specify which operation [like-add, subt, mul, div, logical operations etc., ] should be perform in the program.
Triii said:
9 years ago
What is the difference between opcode, operand, mnemonics?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers