--- title: "Machine Code Monitor (Syntax)" id: 76507 type: "computer_media" slug: "machine-code-monitor-syntax" url: "http://localhost/computer_media/machine-code-monitor-syntax/" markdown_url: "http://localhost/computer_media/machine-code-monitor-syntax.md" published_at: "2026-11-11T08:02:35+00:00" modified_at: "2026-11-11T08:02:35+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/machine-code-monitor-syntax-1.png" excerpt: "A small ZX80 hex monitor: type machine code two hex digits at a time, edit it, and run it with USR to see the result." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - 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/" indiv: - name: "Matthew Johnson" slug: "matthew-johnson" taxonomy: "indiv" url: "http://localhost/indiv/matthew-johnson/" genre: - name: "Machine Language" slug: "machine-language" taxonomy: "genre" url: "http://localhost/type/machine-language/" media_type: "Program" programmers: - name: "Matthew Johnson" slug: "matthew-johnson" taxonomy: "indiv" url: "http://localhost/indiv/matthew-johnson/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Machine%20Code%20Monitor%20%28Syntax%29%20%281981%29%28Johnson%2C%20Matthew%29%28ZX80%29%28US%29%28Program%29.zip" mediadate: "1981" images: - url: "http://localhost/wp-content/uploads/2026/11/machine-code-monitor-syntax-1.png" - url: "http://localhost/wp-content/uploads/2026/11/machine-code-monitor-syntax-2.png" article_media: - id: 19750 title: "Machine Code Monitor" type: "article" url: "http://localhost/article/machine-code-monitor/" related_content: - id: 19730 title: "Modifying Hex Monitor for 4K" type: "article" url: "http://localhost/article/modifying-hex-monitor-for-4k/" - id: 19690 title: "Beginner’s Loading ML Programs" type: "article" url: "http://localhost/article/beginners-loading-ml-programs/" media_type_tags: "Machine Language" license: false --- # Machine Code Monitor (Syntax) A BASIC monitor for entering and running Z80 machine code on the ZX80, derived from one in 30 Programs for the ZX80. Answer the first prompt in decimal with the number of bytes you need (9 to 100); the program then shows each address and waits for two hex digits, or NEWLINE to leave the byte alone. It stores the code in the array it has just set up, so the code does not get in the way of BASIC. After the last byte it asks for changes, then calls the code with USR and prints the value left in HL. The article suggests trying it with the Syntactic Sum routine from the February 1981 issue. A C9 (RET) byte also prints a STORAGE LOCATIONS heading. Syntax later printed changes for loading the code into reserved space instead. Published in Syntax May 1981 ([Machine Code Monitor](https://timexsinclair.com/article/machine-code-monitor/)). ## Source Code ``` 10 REM BE SURE TO LEAVE RESULT 20 REM IN THE HL REGISTER AND 30 REM INCLUDE A RETURN. 40 PRINT "HOW MANY LOCATIONS NEEDED?" 50 PRINT "(FIGURE ONE BYTE/LOC.)" 60 PRINT ":::9