FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Define what is meant by an ‘opcode’
A
An operation to be performed eg add or store
B
Data to be used or memory location of data to be used.
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The opcode uniquely specifies the operation to be performed, while each EA field specifies the register or memory location that contains an operand to be manipulated by the instruction.

Detailed explanation-2: -In computing, an opcode (abbreviated from operation code, also known as instruction machine code, instruction code, instruction syllable, instruction parcel or opstring) is the portion of a machine language instruction that specifies the operation to be performed.

Detailed explanation-3: -In machine language it is a binary or hexadecimal value such as ‘B6’ loaded into the instruction register. In assembly language mnemonic form an opcode is a command such as MOV or ADD or JMP. The opcode is the MOV instruction. The other parts are called the ‘operands’.

Detailed explanation-4: -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.

There is 1 question to complete.