--- title: "MC Programming: PUSHing and POPping (Part 7)" type: "article" slug: "mc-programming-pushing-and-popping-part-7" url: "http://localhost/article/mc-programming-pushing-and-popping-part-7/" markdown_url: "http://localhost/article/mc-programming-pushing-and-popping-part-7.md" published_at: "2026-03-13T00:23:47+00:00" modified_at: "2026-03-13T00:23:47+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Seventh installment of the machine code series, covering the Z80 PUSH and POKE stack instructions for preserving register pairs during machine code subroutines. Explains how to avoid crashing the ZX80/81 by PUSHing registers before use and POPping before returning to BASIC. Includes three rules and FAST/SLOW mode notes." category: - name: "Syntax" slug: "syntax" taxonomy: "category" url: "http://localhost/category/periodicals/syntax/" post_tag: - name: "Machine language programming" slug: "machine-language" taxonomy: "post_tag" url: "http://localhost/tag/machine-language/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - 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/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Jonathan Bobst" slug: "bobst-jonathan" taxonomy: "indiv" url: "http://localhost/indiv/bobst-jonathan/" publication_r: id: 10246 title: "Syntax" type: "periodical" url: "http://localhost/periodical/syntax/" authors_r: - name: "Jonathan Bobst" slug: "bobst-jonathan" taxonomy: "indiv" url: "http://localhost/indiv/bobst-jonathan/" volume: "3" issue: "7" issues_articles: - id: 52481 title: "Syntax/Syntax ZX80 v3 n7" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v3-n7/" pages: "15" pubdate: "July 1982" archive_link: false --- # MC Programming: PUSHing and POPping (Part 7) Seventh installment of the machine code series, covering the Z80 PUSH and POKE stack instructions for preserving register pairs during machine code subroutines. Explains how to avoid crashing the ZX80/81 by PUSHing registers before use and POPping before returning to BASIC. Includes three rules and FAST/SLOW mode notes.