expand icon
book New Perspectives on Computer Concepts 2014, Introductory 17th Edition by June Jamrich Parsons,Dan Oja cover

New Perspectives on Computer Concepts 2014, Introductory 17th Edition by June Jamrich Parsons,Dan Oja

Edition 17ISBN: 978-1285766997
book New Perspectives on Computer Concepts 2014, Introductory 17th Edition by June Jamrich Parsons,Dan Oja cover

New Perspectives on Computer Concepts 2014, Introductory 17th Edition by June Jamrich Parsons,Dan Oja

Edition 17ISBN: 978-1285766997
Exercise 2
Make a storyboard showing how a microprocessor's ALU would add the numbers 2 and 8.
Explanation
Verified
like image
like image
Storyboard of microprocessor' ALU
Arithmetic and logic unit of a microprocessor can be defined as a digital circuit that performs all the arithmetic operation like division, product finding, addition and subtraction, and logical operation such as NOT, AND, OR, NAND and X-OR. It is the fundamental building block of the CPU in the computer.
For example a microprocessor's ALU can add two numbers 2 and 8:
1. It takes out both the number and put them in to the two register.
2. Suppose number 2 is stored in register B and number 8 is stored in register D.
3. Then it resets the accumulator and adds the content of register B into the accumulator by executing ADD B instruction.
4. Then again it adds the content of register D in to the content of accumulator by executing ADD D instruction.
5. If carry is generated, then it set the carry flag.
6. It displays the sum of two numbers to the output port.
close menu
New Perspectives on Computer Concepts 2014, Introductory 17th Edition by June Jamrich Parsons,Dan Oja
cross icon