"Instruction Format"
- A computer program is a set of instructions that describe the steps to be performed for carrying out a computational task.
- The program and the data, on which the program operates, are stored in main memory, waiting to be processed by the processor.
- This is also called the stored program concept.
An instruction is designed to perform a task and is an elementary operation that the processor can accomplish.
- An instruction is divided into groups called fields.
- The common fields of an instruction are—Operation (op) code and Operand code .
- The remainder of the instruction fields differs from one computer type to other.
- The operation code represents action that the processor must execute.
- It tells the processor what basic operations to perform. The operand code defines the parameters of the action and depends on the operation.
- It specifies the locations of the data or the operand on which the operation is to be performed.
- It can be data or a memory address.
No comments:
Post a Comment