In: Computer Science
What is the Opcode? What is the Operand? What is the value in Register 5 after the instruction is executed?
Opcode and Operands are the terms used while talking about instructions running by CPU.
They form the instruction set of the microprocessor.
Opcode stands for Operation Code,it is a single instruction executed by CPU.
Opcode tells the CPU what to do, with the data besides it, the data that is to be processed.
Opcode is designed while the manufacturing of the chip, and opcode can't be changed untill you change the hardware.
While Operands are the variable that store data.
Eg: MOV A,B
here MOV is a opcode, meaninf move the data
A and B are variables, and this instruction means move data of B into A.
Opcode is the one which tells the ALU that what operation is to be performed between the data.
example: ADD R1,R2
ADD is the Opcode and R1 and R2 are the Operand .
Which instruction being executed in register5?Question doesn't specifies.