--- title: "Fireworks" id: 81111 type: "computer_media" slug: "fireworks" url: "http://localhost/computer_media/fireworks/" markdown_url: "http://localhost/computer_media/fireworks.md" published_at: "2026-11-26T23:47:35+00:00" modified_at: "2026-11-26T23:47:35+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/fireworks-1.png" excerpt: "A rocket bursts into asterisks, then a hidden Fourth of July message is decoded." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Jack Hodgson" slug: "jack-hodgson" taxonomy: "indiv" url: "http://localhost/indiv/jack-hodgson/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" media_type: "Program" programmers: - name: "Jack Hodgson" slug: "jack-hodgson" taxonomy: "indiv" url: "http://localhost/indiv/jack-hodgson/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Fireworks%20%281983%29%28Hodgson%2C%20Jack%29%28TS1000%29%28Program%29.zip" mediadate: "1983" images: - url: "http://localhost/wp-content/uploads/2026/11/fireworks-1.png" - url: "http://localhost/wp-content/uploads/2026/11/fireworks-2.png" article_media: - id: 22515 title: "Fireworks" type: "article" url: "http://localhost/article/fireworks/" media_type_tags: "Graphics" license: false --- # Fireworks A Fourth of July program: a rocket (O) climbs diagonally across the screen, bursts into a pattern of asterisks, and the program then decodes a hidden message, HAPPY-4TH-OF-JULY, by adding one to the code of each character of a string. RUN it. Needs 2K: on a 1K machine it runs out of memory as the message starts. Published in the BCS Sinclair-Timex User Group Newsletter July 1983 ([Fireworks](https://timexsinclair.com/article/fireworks/)). ## Source Code ``` 110 LET B=5 120 FOR A=15 TO 4 STEP -1 130 PRINT AT A,B;"O" 132 PRINT AT A,B;" " 135 LET B=B+1 140 NEXT A 150 PRINT AT 4,16;"*" 160 PRINT AT 3,15;"* *" 170 PRINT AT 5,15;"* *" 180 PRINT AT 2,13;"** **" 190 PRINT AT 6,14;"* *" 200 PRINT AT 1,11;"** **" 210 PRINT AT 7,14;"* *";AT 8,13;"* *";AT 9,12;"* *" 220 PRINT AT 2,10;"* ** ** *";AT 10,11;"* *" 230 LET C$="G9OOX+3SG+NE+ITKX" 240 FOR Z=1 TO LEN C$ 250 PRINT CHR$ (CODE C$(Z)+1); 260 NEXT Z ```