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.
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
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
DOI: https://doi.org/10.1007/978-1-349-81211-0_26
Publisher Name: Palgrave, London
Print ISBN: 978-1-349-81213-4
Online ISBN: 978-1-349-81211-0
eBook Packages: Palgrave Social & Cultural Studies CollectionSocial Sciences (R0)