Jump to content

How to add?


kenshin

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

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.