Jump to content

How to add?

Featured Replies

How basic arithmatic operations are performed by a computer at hardware level.Putting it in another way,what kind of assembly,in what manner takes a binary strings as input (say 10(for 2) and 11(for 3)) and produces an output (like say in case of addition 101(5)).By "what kind of assembly",I mean the combinations of gates and other electronic components.

 

Thanks in advance.

you`de load a register with one number using an LD (designation).(numeric value).

then load the accumulator with the other number LDA (numeric value)

then add them with ADD (register designation) command.

from there you can do what ever you like with the sum stored in the accumlator, maybe put it out to a mem location etc...

 

as for the hardware (gates) you`de need to use full adders with carry.

 

ina CPU though all this is done by the ALU.

  • Author

Yt,can you(or anyone else)explaine to me how it happens bit by bit using a small example(say 3+2=5).Thanks.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.