Home » Personal collection » Commodore disks » disk41a_autostereo.d64 » autostereo

autostereo

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 » disk41a_autostereo.d64
Filename: autostereo
Read OK:
File size: 04C4 bytes
Load address: 0801
Exec address: 0000
File contents
    40 S=16:B=3:C=8:SM=1024
    45 POKE53272,(PEEK(53272) AND 15) OR S
    50 POKE56578,PEEK(56578) OR 3
    55 POKE56576,(PEEK(56576) AND 252) ORB
    60 XM=C*1024:H=INT(XM/256):L=XM-256*H
    65 POKE51,L:POKE52,H
    70 POKE55,L:POKE56,H
    75 POKE53272,(PEEK(53272) AND 241) ORC
    80 POKE53265,PEEK(53265) OR 32
    85 FOR J=SM TO SM+999
    90 POKEJ,1
    95 NEXT
   100 FOR J=XM TO XM+7999
   105 POKE J,0
   110 NEXT
   129 GOSUB 2000
   175 GETK$:IFK$<>" "THEN175
   180 POKE53265,PEEK(53265) AND 223
   185 POKE53272,(PEEK(53272) AND 240) OR4
   190 STOP
  1000 BYTE=XM+7687-320*INT(R/8)-(RAND7)+INT(C/8)*8
  1005 BIT=7-(CAND7)
  1010 POKE BYTE,PEEK(BYTE) OR 2^BIT
  1015 RETURN
  2000 WIDTH=320
  2010 HEIGHT=200
  2020 EYES=90
  2030 DIMSAME%(WIDTH)
  2040 DIMCOLOUR%(WIDTH)
  2050 FOR Y=HE-1 TO 0 STEP -1
  2060 FOR X=0 TO WI-1:SAME%(X)=X:NEXT
  2070 FOR X=0 TO WI-1
  2072 POKE 49152,X AND 255:POKE 49153,Y
  2080 GOSUB 3000
  2090 I=X-(SE+(SE AND Y AND 1))/2
  2100 J=I+SE
  2110 IF I<0 OR J>=WI THEN NEXT:GOTO2180
  2120 S=SAME%(I)
  2130 IF S<=J THEN I=S:GOTO 2150
  2140 SAME%(I)=J:I=J:J=S
  2150 IF NOT SAME%(I)=INT(I) AND SAME%(J)=INT(J) THEN GOTO 2120
  2160 SAME%(I)=J
  2170 NEXT X
  2180 FOR X=WI-1 TO 0 STEP -1
  2185 IF SAME%(X)=X THEN COL%(X)=INT(RND(1)*2)
  2190 IF NOT SAME%(X)=X THEN COL%(X)=COL%(SAME%(X))
  2200 IF COL%(X)=1 THEN R=X:C=Y:GOSUB1000
  2210 NEXT X
  2220 NEXT Y
  3000 GR=EY/2:HA=GR-3
  3010 BR=70:HR=30:BH=25
  3020 SE=GR
  3030 IF Y>=HE/2+BR THEN RETURN
  3040 IF Y>=HE/2-BR+BH AND X>=WI/2-HR AND X<WI/2+HR THEN SE=HA:RETURN
  3050 IF Y>=HE/2-BR AND X>=WI/2-BR AND X<WI/2+BR THEN SE=HA
  3060 RETURN

(S�16:B�3:C�8:SM�10249-�53272,(�(53272) � 15) � SQ2�56578,�(56578) � 3p7�56576,(�(56576) � 252) �B�<XM�C�1024:H��(XM�256):L�XM�256�H�A�51,L:�52,H�F�55,L:�56,H�K�53272,(�(53272) � 241) �C�P�53265,�(53265) � 32	U� J�SM � SM�999
	Z�J,1	_�%	d� J�XM � XM�7999/	i� J,05	n�@	�� 2000U	��K$:�K$��" "�175o	��53265,�(53265) � 223�	��53272,(�(53272) � 240) �4�	���	�BYTE�XM�7687�320��(R�8)�(R�7)��(C�8)�8�	�BIT�7�(C�7)�	�� BYTE,�(BYTE) � 2�BIT�	���	�WIDTH�320
�HEIGHT�200
�EYES�90+
��SAME%(WIDTH)?
��COLOUR%(WIDTH)U
� Y�HE�1 � 0 � �1s
� X�0 � WI�1:SAME%(X)�X:��
� X�0 � WI�1�
� 49152,X � 255:� 49153,Y�
 � 3000�
*I�X�(SE�(SE � Y � 1))�2�
4J�I�SE�
>� I�0 � J��WI � �:�2180�
HS�SAME%(I)R� S��J � I�S:� 2150.\SAME%(I)�J:I�J:J�S]f� � SAME%(I)��(I) � SAME%(J)��(J) � � 2120lpSAME%(I)�Jtz� X��� X�WI�1 � 0 � �1��� SAME%(X)�X � COL%(X)��(�(1)�2)��� � SAME%(X)�X � COL%(X)�COL%(SAME%(X))��� COL%(X)�1 � R�X:C�Y:�1000�� X�� Y�GR�EY�2:HA�GR�35�BR�70:HR�30:BH�25?�SE�GRT�� Y��HE�2�BR � ���� Y��HE�2�BR�BH � X��WI�2�HR � X�WI�2�HR � SE�HA:���� Y��HE�2�BR � X��WI�2�BR � X�WI�2�BR � SE�HA���
ZH(@s.16:b.3:c.8:sm.1024@9H-@.53272,(.(53272) . 15) . s@qH2@.56578,.(56578) . 3@PH7@.56576,(.(56576) . 252) .b@.H<@xm.c.1024:h..(xm.256):l.xm.256.h@.Ha@.51,l:.52,h@.Hf@.55,l:.56,h@.Hk@.53272,(.(53272) . 241) .c@.Hp@.53265,.(53265) . 32@AIu@. j.sm . sm.999@JIz@.j,1@PI.@.@%ID@. j.xm . xm.7999@/II@. j,0@5IN@.@@I.@. 2000@uI.@.k$:.k$.." ".175@OI.@.53265,.(53265) . 223@.I.@.53272,(.(53272) . 240) .4@.I.@.@.I.Cbyte.xm.7687.320..(r.8).(r.7)..(c.8).8@.I.Cbit.7.(c.7)@.I.C. byte,.(byte) . 2.bit@.I.C.@.I.Gwidth.320@MJ.Gheight.200@YJ.Geyes.90@+J.G.same%(width)@?J.G.colour%(width)@uJBH. y.he.1 . 0 . .1@SJLH. x.0 . wi.1:same%(x).x:.@.JVH. x.0 . wi.1@.JXH. 49152,x . 255:. 49153,y@.J H. 3000@.J*Hi.x.(se.(se . y . 1)).2@.J4Hj.i.se@.J>H. i.0 . j..wi . .:.2180@.JhHs.same%(i)@WKrH. s..j . i.s:. 2150@.K£Hsame%(i).j:i.j:j.s@]KFH. . same%(i)..(i) . same%(j)..(j) . . 2120@LKPHsame%(i).j@TKZH. x@.K.H. x.wi.1 . 0 . .1@.K.H. same%(x).x . col%(x)..(.(1).2)@.K.H. . same%(x).x . col%(x).col%(same%(x))@.K.H. col%(x).1 . r.x:c.y:.1000@CL.H. x@KL.H. y@.L.Kgr.ey.2:ha.gr.3@5L.Kbr.70:hr.30:bh.25@?L.Kse.gr@tL.K. y..he.2.br . .@.L.K. y..he.2.br.bh . x..wi.2.hr . x.wi.2.hr . se.ha:.@.L.K. y..he.2.br . x..wi.2.br . x.wi.2.br . se.ha@.L.K.@@@
00000000  1a 08 28 00 53 b2 31 36  3a 42 b2 33 3a 43 b2 38  |..(.S.16:B.3:C.8|
00000010  3a 53 4d b2 31 30 32 34  00 39 08 2d 00 97 35 33  |:SM.1024.9.-..53|
00000020  32 37 32 2c 28 c2 28 35  33 32 37 32 29 20 af 20  |272,(.(53272) . |
00000030  31 35 29 20 b0 20 53 00  51 08 32 00 97 35 36 35  |15) . S.Q.2..565|
00000040  37 38 2c c2 28 35 36 35  37 38 29 20 b0 20 33 00  |78,.(56578) . 3.|
00000050  70 08 37 00 97 35 36 35  37 36 2c 28 c2 28 35 36  |p.7..56576,(.(56|
00000060  35 37 36 29 20 af 20 32  35 32 29 20 b0 42 00 95  |576) . 252) .B..|
00000070  08 3c 00 58 4d b2 43 ac  31 30 32 34 3a 48 b2 b5  |.<.XM.C.1024:H..|
00000080  28 58 4d ad 32 35 36 29  3a 4c b2 58 4d ab 32 35  |(XM.256):L.XM.25|
00000090  36 ac 48 00 a5 08 41 00  97 35 31 2c 4c 3a 97 35  |6.H...A..51,L:.5|
000000a0  32 2c 48 00 b5 08 46 00  97 35 35 2c 4c 3a 97 35  |2,H...F..55,L:.5|
000000b0  36 2c 48 00 d4 08 4b 00  97 35 33 32 37 32 2c 28  |6,H...K..53272,(|
000000c0  c2 28 35 33 32 37 32 29  20 af 20 32 34 31 29 20  |.(53272) . 241) |
000000d0  b0 43 00 ed 08 50 00 97  35 33 32 36 35 2c c2 28  |.C...P..53265,.(|
000000e0  35 33 32 36 35 29 20 b0  20 33 32 00 01 09 55 00  |53265) . 32...U.|
000000f0  81 20 4a b2 53 4d 20 a4  20 53 4d aa 39 39 39 00  |. J.SM . SM.999.|
00000100  0a 09 5a 00 97 4a 2c 31  00 10 09 5f 00 82 00 25  |..Z..J,1..._...%|
00000110  09 64 00 81 20 4a b2 58  4d 20 a4 20 58 4d aa 37  |.d.. J.XM . XM.7|
00000120  39 39 39 00 2f 09 69 00  97 20 4a 2c 30 00 35 09  |999./.i.. J,0.5.|
00000130  6e 00 82 00 40 09 81 00  8d 20 32 30 30 30 00 55  |n...@.... 2000.U|
00000140  09 af 00 a1 4b 24 3a 8b  4b 24 b3 b1 22 20 22 a7  |....K$:.K$.." ".|
00000150  31 37 35 00 6f 09 b4 00  97 35 33 32 36 35 2c c2  |175.o....53265,.|
00000160  28 35 33 32 36 35 29 20  af 20 32 32 33 00 8e 09  |(53265) . 223...|
00000170  b9 00 97 35 33 32 37 32  2c 28 c2 28 35 33 32 37  |...53272,(.(5327|
00000180  32 29 20 af 20 32 34 30  29 20 b0 34 00 94 09 be  |2) . 240) .4....|
00000190  00 90 00 bf 09 e8 03 42  59 54 45 b2 58 4d aa 37  |.......BYTE.XM.7|
000001a0  36 38 37 ab 33 32 30 ac  b5 28 52 ad 38 29 ab 28  |687.320..(R.8).(|
000001b0  52 af 37 29 aa b5 28 43  ad 38 29 ac 38 00 cf 09  |R.7)..(C.8).8...|
000001c0  ed 03 42 49 54 b2 37 ab  28 43 af 37 29 00 ea 09  |..BIT.7.(C.7)...|
000001d0  f2 03 97 20 42 59 54 45  2c c2 28 42 59 54 45 29  |... BYTE,.(BYTE)|
000001e0  20 b0 20 32 ae 42 49 54  00 f0 09 f7 03 8e 00 fe  | . 2.BIT........|
000001f0  09 d0 07 57 49 44 54 48  b2 33 32 30 00 0d 0a da  |...WIDTH.320....|
00000200  07 48 45 49 47 48 54 b2  32 30 30 00 19 0a e4 07  |.HEIGHT.200.....|
00000210  45 59 45 53 b2 39 30 00  2b 0a ee 07 86 53 41 4d  |EYES.90.+....SAM|
00000220  45 25 28 57 49 44 54 48  29 00 3f 0a f8 07 86 43  |E%(WIDTH).?....C|
00000230  4f 4c 4f 55 52 25 28 57  49 44 54 48 29 00 55 0a  |OLOUR%(WIDTH).U.|
00000240  02 08 81 20 59 b2 48 45  ab 31 20 a4 20 30 20 a9  |... Y.HE.1 . 0 .|
00000250  20 ab 31 00 73 0a 0c 08  81 20 58 b2 30 20 a4 20  | .1.s.... X.0 . |
00000260  57 49 ab 31 3a 53 41 4d  45 25 28 58 29 b2 58 3a  |WI.1:SAME%(X).X:|
00000270  82 00 84 0a 16 08 81 20  58 b2 30 20 a4 20 57 49  |....... X.0 . WI|
00000280  ab 31 00 a2 0a 18 08 97  20 34 39 31 35 32 2c 58  |.1...... 49152,X|
00000290  20 af 20 32 35 35 3a 97  20 34 39 31 35 33 2c 59  | . 255:. 49153,Y|
000002a0  00 ad 0a 20 08 8d 20 33  30 30 30 00 c9 0a 2a 08  |... .. 3000...*.|
000002b0  49 b2 58 ab 28 53 45 aa  28 53 45 20 af 20 59 20  |I.X.(SE.(SE . Y |
000002c0  af 20 31 29 29 ad 32 00  d4 0a 34 08 4a b2 49 aa  |. 1)).2...4.J.I.|
000002d0  53 45 00 f0 0a 3e 08 8b  20 49 b3 30 20 b0 20 4a  |SE...>.. I.0 . J|
000002e0  b1 b2 57 49 20 a7 20 82  3a 89 32 31 38 30 00 ff  |..WI . .:.2180..|
000002f0  0a 48 08 53 b2 53 41 4d  45 25 28 49 29 00 17 0b  |.H.S.SAME%(I)...|
00000300  52 08 8b 20 53 b3 b2 4a  20 a7 20 49 b2 53 3a 89  |R.. S..J . I.S:.|
00000310  20 32 31 35 30 00 2e 0b  5c 08 53 41 4d 45 25 28  | 2150...\.SAME%(|
00000320  49 29 b2 4a 3a 49 b2 4a  3a 4a b2 53 00 5d 0b 66  |I).J:I.J:J.S.].f|
00000330  08 8b 20 a8 20 53 41 4d  45 25 28 49 29 b2 b5 28  |.. . SAME%(I)..(|
00000340  49 29 20 af 20 53 41 4d  45 25 28 4a 29 b2 b5 28  |I) . SAME%(J)..(|
00000350  4a 29 20 a7 20 89 20 32  31 32 30 00 6c 0b 70 08  |J) . . 2120.l.p.|
00000360  53 41 4d 45 25 28 49 29  b2 4a 00 74 0b 7a 08 82  |SAME%(I).J.t.z..|
00000370  20 58 00 8a 0b 84 08 81  20 58 b2 57 49 ab 31 20  | X...... X.WI.1 |
00000380  a4 20 30 20 a9 20 ab 31  00 af 0b 89 08 8b 20 53  |. 0 . .1...... S|
00000390  41 4d 45 25 28 58 29 b2  58 20 a7 20 43 4f 4c 25  |AME%(X).X . COL%|
000003a0  28 58 29 b2 b5 28 bb 28  31 29 ac 32 29 00 db 0b  |(X)..(.(1).2)...|
000003b0  8e 08 8b 20 a8 20 53 41  4d 45 25 28 58 29 b2 58  |... . SAME%(X).X|
000003c0  20 a7 20 43 4f 4c 25 28  58 29 b2 43 4f 4c 25 28  | . COL%(X).COL%(|
000003d0  53 41 4d 45 25 28 58 29  29 00 fb 0b 98 08 8b 20  |SAME%(X))...... |
000003e0  43 4f 4c 25 28 58 29 b2  31 20 a7 20 52 b2 58 3a  |COL%(X).1 . R.X:|
000003f0  43 b2 59 3a 8d 31 30 30  30 00 03 0c a2 08 82 20  |C.Y:.1000...... |
00000400  58 00 0b 0c ac 08 82 20  59 00 1f 0c b8 0b 47 52  |X...... Y.....GR|
00000410  b2 45 59 ad 32 3a 48 41  b2 47 52 ab 33 00 35 0c  |.EY.2:HA.GR.3.5.|
00000420  c2 0b 42 52 b2 37 30 3a  48 52 b2 33 30 3a 42 48  |..BR.70:HR.30:BH|
00000430  b2 32 35 00 3f 0c cc 0b  53 45 b2 47 52 00 54 0c  |.25.?...SE.GR.T.|
00000440  d6 0b 8b 20 59 b1 b2 48  45 ad 32 aa 42 52 20 a7  |... Y..HE.2.BR .|
00000450  20 8e 00 8b 0c e0 0b 8b  20 59 b1 b2 48 45 ad 32  | ....... Y..HE.2|
00000460  ab 42 52 aa 42 48 20 af  20 58 b1 b2 57 49 ad 32  |.BR.BH . X..WI.2|
00000470  ab 48 52 20 af 20 58 b3  57 49 ad 32 aa 48 52 20  |.HR . X.WI.2.HR |
00000480  a7 20 53 45 b2 48 41 3a  8e 00 bd 0c ea 0b 8b 20  |. SE.HA:....... |
00000490  59 b1 b2 48 45 ad 32 ab  42 52 20 af 20 58 b1 b2  |Y..HE.2.BR . X..|
000004a0  57 49 ad 32 ab 42 52 20  af 20 58 b3 57 49 ad 32  |WI.2.BR . X.WI.2|
000004b0  aa 42 52 20 a7 20 53 45  b2 48 41 00 c3 0c f4 0b  |.BR . SE.HA.....|
000004c0  8e 00 00 00                                       |....|
000004c4