--- title: "The Flags Register (Part 3)" type: "article" slug: "the-flags-register-part-3" url: "http://localhost/article/the-flags-register-part-3/" markdown_url: "http://localhost/article/the-flags-register-part-3.md" published_at: "2026-03-13T00:37:54+00:00" modified_at: "2026-03-13T00:37:54+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Third installment of a 12-part machine code programming series. Explains the Z80 Flags register bits (Sign, Zero, Half-carry, Parity/Overflow, Add/Subtract, Carry), with focus on the Zero flag and the combination of bit-test and branch instructions." 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/" 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: "3" issues_articles: - id: 52476 title: "Syntax/Syntax ZX80 v3 n3" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v3-n3/" pages: "17" pubdate: "March 1982" archive_link: false --- # The Flags Register (Part 3) Third installment of a 12-part machine code programming series. Explains the Z80 Flags register bits (Sign, Zero, Half-carry, Parity/Overflow, Add/Subtract, Carry), with focus on the Zero flag and the combination of bit-test and branch instructions.