Sunday, February 27, 2011

Arithmetic and logic operations

The number of instructions available in a computer may be a few hundred in a large system or a few dozen in a small one.Some computers perform a given operation with one machine instruction;others may require a large number of machine instructions to perform the same operation  . Some computers have machine instructions to add,subtract,multiply and divide.others such as the basic computer have only one arithmetic instruction,such as add.operations not included in the set of machine instructions must be implemented by a program.
operations that are implemented in a computer with one machine instruction are said to be implemented by hardware.operations implemented by a set of instructions that constitute a program are said to be implemented
by software.some computers provide an extensive set of hardware instructions designed to speed up common tasks .others contain a smaller set of hardware instructions and depend more heavily on the software implementation of many operations

No comments:

Post a Comment