Home » Personal collection » Commodore disks » disk42b_unlabelled.d64 » sample-analysis
sample-analysis
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
| Tape/disk: | Home » Personal collection » Commodore disks » disk42b_unlabelled.d64 |
| Filename: | sample-analysis |
| Read OK: | ✔ |
| File size: | 0243 bytes |
| Load address: | 0801 |
| Exec address: | 0000 |
File contents
4 REM *********************************
5 REM * PRINTS LIST OF GAPS BETWEEN *
6 REM * BINARY 1S *
7 REM *********************************
8 :
10 POKE 55,0:POKE 56,80
20 CLR:DIM D%(600)
30 :
40 FOR BY=$6000 TO $7000
50 FOR B=7 TO 0 STEP -1
60 Y=PEEK(BY):ZC=ZC+1
70 IF (Y AND 2^B) THEN PRINT DN,ZC:D%(DN)=ZC:DN=DN+1:ZC=0
80 IF DN=600 THEN GOSUB 1000
90 NEXT B,BY
100 GOSUB 1000
110 END
120 :
1000 PRINT"PRESS SPACE TO PRINT"
1010 GET K$:IF K$<>" " THEN 1010
1020 OPEN 4,4:OPEN 9,4,9
1030 FOR PD=0 TO 59
1040 FOR PS=PD TO PD+540 STEP 60
1050 PRINT#4,STR$(D%(PS));
1055 PRINT#9,CHR$(9);
1060 NEXT
1080 NEXT
1090 PRINT#4:CLOSE4:CLOSE9
1100 FOR R=0 TO 600:D%(R)=-1:NEXT
1110 RETURN
) � ********************************* Q � * PRINTS LIST OF GAPS BETWEEN * y � * BINARY 1S * � � ********************************* � : � � 55,0:� 56,80 � �:� D%(600) � : �( � BY�$6000 � $7000 �2 � B�7 � 0 � �1 <