how a machine excute a programme of addition

Here we are going to learn how a computer machine execute an addition and other operation . Before of it we need to learn that how a program execute by the computer.

List of Steps for Attempted Program Execution. 
  1. Place numeric values into memory locations
  2. Load those values from the memory locations into different registers
  3. Perform the  operation to the values stored in the registers and place the result in another register. 
  4. Store the result from the register into a memory location
  5. Use the "Halt" operation to stop the program.
Now we discuss how an operation of addition execute on our machine (computer)
Image result for working of computer diagram
Assume two integer value. Like I  consider that N1=10 and N2=20.  the numbers are changed in machine language by the compiler. Now  N1=1010 and N2=10100.

Now the values saved in different resisters  . The value pass through the gate (OR GATE) .
2-input transistor or gate

now we learn the process of execution of addition operation perform.



I hope you will understand   how a operation performed by the machine


>> How to change decimal to binary
>>How to change decimal to hexadecimal
>> How to change decimal to octal
>> How to change binary to decimal



Post a Comment

Previous Post Next Post