What Is Accumulator In Assembly Language? Explain Basic Concept.

, , 1 comment

 In a computer's central processing unit (CPU), the accumulator is a Register in which intermediate arithmetic and logic results are stored.

Without a Register like an accumulator, it would be necessary to write the result of each calculation (addition, multiplication, Shift, etc.) to main memory, perhaps only to be read right back again for use in the next operation.

Access to main memory is slower than access to a register like an accumulator because the technology used for the large main memory is slower (but cheaper) than that used for a register. Early electronic computer systems were often split into two groups, those with accumulators and those without.

Modern computer systems often have multiple general-purpose registers that can operate as accumulators, and the term is no longer as common as it once was. However, to simplify their design, a number of special-purpose processors still use a single accumulator.

Basic Concept:

Mathematical operations often take place in a stepwise fashion, using the results from one operation as the input to the next. For instance, a manual calculation of a worker's weekly payroll might look something like:

  1. look up the number of hours worked from the employee's time card
  2. look up the pay rate for that employee from a table
  3. multiply the hours by the pay rate to get their basic weekly pay
  4. multiply their basic pay by a fixed percentage to account for income tax
  5. subtract that number from their basic pay to get their weekly pay after tax
  6. multiply that result by another fixed percentage to account for retirement plans
  7. subtract that number from their basic pay to get their weekly pay after all deductions

1 comment:

  1. Your blog is very nice and interesting. Your way of writing this blog forced me to read the full blog. Being a new reader, your blog increased my interest in reading. I really enjoyed while reading your article, the information you have mentioned in this post is really good. I am waiting for your upcoming post. You write this post very carefully I think, which is easily understand to me. Also Visit Payroll Outsourcing Companies, this is a helpful resource to enhance knowledge about it.

    ReplyDelete