Skip to main content

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 42 Accesses

Abstract

One of the simplest operations often needed in a microprocessor program is to add together two bytes held in the writable store and put the sum also into the store. This can only be done using the accumulator, so that the procedure becomes

Load Accumulator from NUM1

Add to Accumulator NUM2

Store Accumulator in SUM

Here NUM1 and NUM2 are the addresses of the two bytes to be added and SUM the address allocated for the sum.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Copyright information

© 1987 J.C. Cluley

About this chapter

Cite this chapter

Cluley, J.C. (1987). Basic Algorithms. In: An Introduction to Low Level Programming for Microprocessors. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-09355-7_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-09355-7_5

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-43692-9

  • Online ISBN: 978-1-349-09355-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics