TYPES OF INSTRUCTION EXECTED BY CPU
The instruction set of the CPU generally consists of four types of instructions. These are:
(1)Arithmetic Instructions
(2)Logical Instructions
(3)Data Transfer Instructions
(4)Control Transfer Instructions
Arithmetic Instructions
The instructions that are used to perform arithmetic operations of addition, subtraction, multiplication and division are called arithmetic instructions. These instructions are executed by arithmetic section of ALU.
Logical Instructions
The instruction that are used to compare two data items with each are called logical instruction. These instruction are executed by logical section of ALU.
Data Transfer Instructions
The instructions that are used to transfer data from one unit to another during program execution are called data transfer instructions. For example, these instructions are used to transfer data from the RAM to the CPU registers.
Control Transfer Instructions
The instruction that are used to transfer the execution control from one part of the program to another during program execution are called control instructions.
No comments:
Post a Comment