Skip to main content
  • 5 Accesses

Abstract

As programs tend to get longer there may be several lines of the program that are needed more than once. It is not necessary to keep typing in these lines as they can be put into a subroutine, or subprogram as it is sometimes called. A subroutine, therefore, consists of several program lines making up one section of the main program which may be called upon more than once while the program is running. To use or call a subroutine the statement GOSUB, on key H, is used.

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.

Author information

Authors and Affiliations

Authors

Copyright information

© 1985 Judith Miller

About this chapter

Cite this chapter

Miller, J. (1985). Subroutines. In: Beginning BASIC with the ZX Spectrum. Palgrave, London. https://doi.org/10.1007/978-1-349-81211-0_26

Download citation

Publish with us

Policies and ethics