--- title: "Subroutines — Super Step-Savers" type: "article" slug: "subroutines-super-step-savers" url: "http://localhost/article/subroutines-super-step-savers/" markdown_url: "http://localhost/article/subroutines-super-step-savers.md" published_at: "2020-10-27T17:11:03+00:00" modified_at: "2024-06-23T00:37:27+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Subroutines are mini-programs; they execute a series of steps apart from the main program. In essence, you tell the computer, \"Go do those steps and then come back here and proceed with the main program.\" The ZX80 remembers where it was and returns to the following line after executing the subroutine. You can call the…" category: - name: "Syntax" slug: "syntax" taxonomy: "category" url: "http://localhost/category/periodicals/syntax/" post_tag: - name: "1980" slug: "1980" taxonomy: "post_tag" url: "http://localhost/tag/1980/" - name: "Tutorial" slug: "tutorial" taxonomy: "post_tag" url: "http://localhost/tag/tutorial/" - name: "ZX80" slug: "zx80" taxonomy: "post_tag" url: "http://localhost/tag/zx80/" model: - name: "Sinclair ZX80" slug: "zx80" taxonomy: "model" url: "http://localhost/model/zx80/" publication: "Syntax" publication_r: id: 10246 title: "Syntax" type: "periodical" url: "http://localhost/periodical/syntax/" volume: "1" issue: "2" issues_articles: - id: 26692 title: "Syntax/Syntax ZX80 v1 n2" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v1-n2/" pages: "11" pubdate: "December 1980" archive_link: false volumeissue: "v1n2" --- # Subroutines — Super Step-Savers Subroutines are mini-programs; they execute a series of steps apart from the main program. In essence, you tell the computer, “Go do those steps and then come back here and proceed with the main program.” The ZX80 remembers where it was and returns to the following line after executing the subroutine. You can call the subroutine many times from your main program, but you need type it only once.