This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 100 REM TIC-TAC-TOE. YOU (X) VS. THE COMPUTER (O) | |
| 110 GOTO 200 | |
| 120 BOARD IS IN MEMORY LOCATIONS 0007-000F | |
| 130 . 0 IS EMPTY, 1 IS X. 3 TS O | |
| 140 I HAS CURRENT POSITION | |
| 150 G IS PEEK ROUTINE ADDRESS | |
| 160 P IS POKE ROUTINE ADDRESS | |
| 170 F=1 IF YOU PLAY FIRST | |
| 180 U IS NUMBER OF UNPLAYED SQUARES | |
| 190 Z=1 IF SOMEONE WON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 REM print Number, square and Cube for 1 to 10 with TAB | |
| 20 PRINT TAB (1),"Number", TAB (11),"Square", TAB (21),"Cube" | |
| 30 FOR I=1 TO 10 | |
| 40 PRINT I, TAB (10),I**2, TAB (20),I**3 | |
| 50 NEXT I | |
| 60 END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 FOR I=0 TO 20 | |
| 20 PRINT "2^",I,"is",2**I | |
| 30 NEXT I | |
| 40 END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 FOR A=0 TO 4*PI STEP 0.15 | |
| 20 PRINT TAB (40+SIN(A)*20),"*" | |
| 30 NEXT A | |
| 35 REM GOTO 10 | |
| 40 END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0000 REM NOT YET TESTED on Z80 | |
| 0010 REM THIS PROGRAM PLAYS THE HIGH/LOW GAME. | |
| 0020 PRINT "I WILL PICK A NUMBER BETWEEN 1 AND 100" | |
| 0030 PRINT "THEN I WANT YOU TO TRY AND GUESS IT." | |
| 0040 PRINT "I WILL TELL YOU IF YOU ARE TOO HIGH, OR TOO LOW" | |
| 0050 C=0 | |
| 0060 N=1+R;?%100 | |
| 0070 INPUT "WHAT IS YOUR GUESS?",G | |
| 0080 C=C+1 | |
| 0090 LIF G==N THEN PRINT "YOU GUESSED IT IN ",C," GUESSES!":END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 REM The factorial of a integer less than 85 | |
| 20 INPUT " Enter last integer number = ",N | |
| 30 FACT=1 | |
| 40 FOR I=1 TO N | |
| 50 FACT=FACT*I | |
| 55 PRINT I,FACT | |
| 60 NEXT I | |
| 70 PRINT " FACTorial of the entered Number is = ",FACT | |
| 80 END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 REM The sum of the first N natural numbers | |
| 20 INPUT " Enter last natural number = ",N | |
| 30 SUM=0 | |
| 40 FOR I=0 TO N | |
| 50 SUM=SUM+I | |
| 60 NEXT I | |
| 70 PRINT " Sum of all the natural numbers = ",SUM | |
| 80 END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*---- created 22 Jun 2026 by dd647 -------*/ | |
| int DAT_pin = 3; | |
| int CLK_pin = 4; | |
| int RST_pin = 2; | |
| void set(int c, int v){ | |
| digitalWrite(CLK_pin, LOW); | |
| digitalWrite(RST_pin, HIGH);//-----------HIGH | |
| shiftOut(DAT_pin, CLK_pin, LSBFIRST, c);//Command write | |
| shiftOut(DAT_pin, CLK_pin, LSBFIRST, v);//set time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 100 REM Utility to hex dump ROM code from Intel 8052-BASIC MCU S.Quest '97 | |
| 110 COU=0 : BEG=0 : NDD=8191 : FST=0 | |
| 120 PH1. BEG+FST," = ", : FOR CYC=BEG TO NDD | |
| 130 COU=COU+1 : IF COU=17 PH1. CYC+FST," = ", : COU=1 | |
| 140 PH0. CBY(FST+CYC), : NEXT CYC : PRINT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 100 REM Utility to hex dump ROM code from Intel 8052-BASIC MCU S.Quest '97 | |
| 110 COU=0 : BEG=0 : NDD=12287 : FST=0 | |
| 120 PH1. BEG+FST," = ", : FOR CYC=BEG TO NDD | |
| 130 COU=COU+1 : IF COU=17 PH1. CYC+FST," = ", : COU=1 | |
| 140 PH0. CBY(FST+CYC), : NEXT CYC : PRINT |
NewerOlder