{"id":181,"date":"2024-12-01T19:28:17","date_gmt":"2024-12-01T19:28:17","guid":{"rendered":"https:\/\/goldtek.ca\/?p=181"},"modified":"2024-12-01T23:08:15","modified_gmt":"2024-12-01T23:08:15","slug":"apple-matrix","status":"publish","type":"post","link":"https:\/\/goldtek.ca\/?p=181","title":{"rendered":"Apple MATRIX"},"content":{"rendered":"\n<p class=\"has-black-color has-text-color has-link-color wp-elements-446d5d52002cdf9857ac869cf75c0c3d\">I was using my old iMac one day, for the first time in a quite a while &#8211; I was looking up something for AppleSoft coding that had popped into my head while away from my home office -, and when I was done I moved my mouse to the top right corner where my HotCorners will launch the screensaver.  Well, I hadn&#8217;t used this machine in quite a while, and forgot that I have a Matrix style screensaver in use. Always loved the Matrix screens. I wondered if there was a little program for AppleSoft so back onto the net I went, and found absolutely nothing! That seemed pretty strange, so I searched some more. Still nothing. <\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-98c2c6b3a45d68db9c83cbc511ba2ba6\">The AppleSoft world needed a little program to generate Matrix style screens, so I wrote one. This was lots of fun to build, and I am quite happy with it, and will likely work on it in the future to improve it, but for now here is the text listing. You can copy and paste it into an emulator like AppleWin, or type it into your own vintage Apple computer. You can do whatever you like with it, I only ask that you leave my name in the code listing \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/goldtek.ca\/wp-content\/uploads\/2024\/12\/MatrixScreenshot.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"707\" src=\"https:\/\/goldtek.ca\/wp-content\/uploads\/2024\/12\/MatrixScreenshot-1024x707.png\" alt=\"Matrix running in AppleWin\" class=\"wp-image-187\" srcset=\"https:\/\/goldtek.ca\/wp-content\/uploads\/2024\/12\/MatrixScreenshot-1024x707.png 1024w, https:\/\/goldtek.ca\/wp-content\/uploads\/2024\/12\/MatrixScreenshot-300x207.png 300w, https:\/\/goldtek.ca\/wp-content\/uploads\/2024\/12\/MatrixScreenshot-768x530.png 768w, https:\/\/goldtek.ca\/wp-content\/uploads\/2024\/12\/MatrixScreenshot.png 1175w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Matrix running in AppleWin<\/figcaption><\/figure>\n\n\n\n<p>10 REM MATRIX<br>20 REM WAYNE GOLDSMITH 2023<br>25 PRINT CHR$ (4)&#8221;PR#3&#8243;<br>30 HOME<br>31 DIM CHAR(84)<br>32 FOR I = 1 TO 84<br>33 READ CHAR(I)<br>34 NEXT I<br>35 DATA 32,33,34,35,36,37,38,3<br>9,40,41,42,43,44,45,46,47,48<br>,49,50,51,52,53,54,55,56,57,<br>58,59,60,61,62,63,64,65,66,6<br>7,68,69,70,71,72,73,74,75,76<br>,77,78,79,80,81,82,83,84,85,<br>86,87,88,89,90<br>36 DATA 97,98,99,100,101,102,1<br>03,104,105,106,107,108,109,1<br>10,111,112,113,113,115,116,1<br>17,118,119,120,121,122<br>39 X = 0:Y = 0:L = 0<br>40 REM CALC COLUMN POS<br>50 X = INT (80 * RND (1))<br>60 REM CALC COLUMN LENGTH<br>70 L = INT (22 * RND (1))<br>80 REM DISPLAY COLUMN<br>100 FOR Y = 1 TO L<br>105 FOR R = 1 TO 2<br>115 POKE 1403,X : REM ALLOWS HTAB PAST 40 COLS APPLE][E<br>120 VTAB Y<br>125 GOSUB 1000<br>130 PRINT CHR$ (CHAR(C))<br>135 NEXT R<br>140 NEXT Y<br>142 COUNT = COUNT + 1<br>143 IF COUNT = 3 THEN GOSUB 30<br>00<br>144 IF COUNT = 2 THEN GOSUB 20<br>00<br>150 GOTO 39<br>1000 REM GENERATE CONTENT<br>1010 C = INT (84 * RND (1))<br>1020 REM FOR T=1 TO 10<br>1030 REM NEXT T<br>1090 RETURN<br>2000 REM RND COLUMN WIPER<br>2005 FOR WI = 1 TO 2<br>2010 X = INT (80 * RND (1))<br>2020 L = 21<br>2030 FOR Y = 1 TO L<br>2040 POKE 1403,X: VTAB Y<br>2045 FOR T = 1 TO 10<br>2046 NEXT T<br>2050 PRINT CHR$ (32)<br>2060 NEXT Y<br>2065 NEXT WI<br>2070 X = 0:Y = 0:L = 0<br>2080 RETURN<br>3000 REM RND FLASH CHARACTER<br>3005 IF L &lt; 1 THEN L = 1<br>3010 INV = INT (22 * RND (1))<br>3015 IF INV = 0 THEN 3010<br>3020 POKE 1403,X: VTAB INV<br>3025 GOSUB 1000<br>3030 FLASH : PRINT CHR$ (CHAR(<br>C))<br>3050 COUNT = 0<br>3060 NORMAL<br>3070 RETURN<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was using my old iMac one day, for the first time in a quite a while &#8211; I was looking up something for AppleSoft coding that had popped into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,36],"tags":[69,68,49,48,4,70],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-applesoft","category-coding","tag-c","tag-e","tag-apple","tag-applesoft","tag-phishing","tag-vintage"],"_links":{"self":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":6,"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}