Skip to main content

Subroutines

  • Chapter
  • 89 Accesses

Part of the book series: Macmillan Computer Science Series

Abstract

Subroutines in assembly-code (or machine-code) programming are related to procedures in Pascal: a subroutine is a series of instructions which can be called from anywhere in a program; the exact effect of the subroutine’s instructions can be varied from call to call using parameters. Just as a Pascal program may be smaller if it uses procedures because only one copy of a commonly occurring series of statements need be held in the program, so an assembly-code program may be smaller if subroutines are used. Just as a large Pascal program can be structured using procedures, so an assembly-code program can be structured using subroutines.

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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Copyright information

© 1982 Graham Lee

About this chapter

Cite this chapter

Lee, G. (1982). Subroutines. In: From Hardware to Software. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-16786-9_17

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-16786-9_17

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-24363-3

  • Online ISBN: 978-1-349-16786-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics