--- title: "Timer in Assembly" type: "article" slug: "timer-in-assembly" url: "http://localhost/article/timer-in-assembly/" markdown_url: "http://localhost/article/timer-in-assembly.md" published_at: "2025-07-12T01:36:30+00:00" modified_at: "2025-07-12T01:36:30+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "While working on a game project, I needed a way to time what a user was doing, all in Z80 assembly. The ZX81 does not have a clock mechanism, but it has something close." category: - name: "ZXzine" slug: "zxzine" taxonomy: "category" url: "http://localhost/category/periodicals/zxzine/" post_tag: - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" publication_r: id: 38051 title: "ZXzine" type: "periodical" url: "http://localhost/periodical/zxzine/" authors_r: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" issue: "11" issues_articles: - id: 60032 title: "ZXzine Issue 11" type: "issue" url: "http://localhost/issue/zxzine-issue-11/" pages: "19-20" pubdate: "January 2025" archive_link: false --- # Timer in Assembly While working on a game project, I needed a way to time what a user was doing, all in Z80 assembly. The ZX81 does not have a clock mechanism, but it has something close.