Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199512_2.adf » !Regulars » Regulars/StarInfo/Vibe/BLACKHOLE

Regulars/StarInfo/Vibe/BLACKHOLE

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199512_2.adf » !Regulars
Filename: Regulars/StarInfo/Vibe/BLACKHOLE
Read OK:
File size: 0440 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > BLACKHOLE
   20
   30MODE28:OFF
   40DIM SPR &80000,ROT 32
   50SPR!0=&7FFFF:SPR!4=0:SPR!8=16:SPR!12=16
   60
   70FORN%=1TO1000:GCOLRND(63):CIRCLE FILL RND(1280),RND(960),RND(100):NEXT
   80
   90ONERRORGOTO440
  100REPEAT
  110CASERND(4)OF
  120WHEN 1:X1%=0:Y1%=RND(960)
  130WHEN 2:X1%=1280:Y1%=RND(960)
  140WHEN 3:X1%=RND(1280):Y1%=0
  150WHEN 4:X1%=RND(1280):Y1%=960
  160ENDCASE
  170PROCL(X1%,Y1%,640,480,64,8)
  180UNTIL0
  190
  200DEFPROCL(X1,Y1,X2,Y2,W,D)
  210LOCAL L,T1,T2,F,HT,WT,XA,YA,WA
  220WT=ABS(X2-X1)+W:HT=ABS(Y2-Y1)+W:WA=W/2
  230XA=X1:IF X2<X1 XA=X2
  240YA=Y1:IF Y2<Y1 YA=Y2
  250SYS"OS_SpriteOp",256+16,SPR,"LS",0,XA-WA,YA-WA,XA-WA+WT,YA-WA+HT
  260SYS"OS_SpriteOp",256+29,SPR,"LS"
  270SYS"OS_SpriteOp",256+61,SPR,"LS"
  280GCOL0TINT0:RECTANGLE FILL 0,0,WT+4,HT+4:GCOL63TINT255
  290X1-=XA-WA:Y1-=YA-WA:X2-=XA-WA:Y2-=YA-WA
  300L=SQR((X1-X2)^2+(Y1-Y2)^2):IF X1>X2 L=-L
  310IF L<>0 THEN
  320T1=ASN((Y1-Y2)/L):T2=T1+PI:W=W/2
  330MOVEX1+W*SINT1,Y1+W*COST1:MOVEX1+W*SINT2,Y1+W*COST2
  340PLOT&75,X2+W*SINT2,Y2+W*COST2
  350CIRCLE FILL X1,Y1,W:CIRCLE FILL X2,Y2,W
  360ELSE
  370CIRCLE FILL X1,Y1,W
  380ENDIF
  390F=ABS(L):XA=XA-D*(X1-X2)/F:YA=YA+D*(Y2-Y1)/F
  400SYS"OS_SpriteOp",256+61,SPR,0:OFF
  410SYS"OS_SpriteOp",256+34,SPR,"LS",XA-W,YA-W,8
  420ENDPROC
  430
  440SYS"OS_SpriteOp",256+61,SPR,0
  450REPORT:PRINT" at line "+STR$(ERL)

� > BLACKHOLE

	�28:�
(� SPR &80000,ROT 32
2+SPR!0=&7FFFF:SPR!4=0:SPR!8=16:SPR!12=16
<
F3�N%=1�1000:�(63):ȏ Ȑ �(1280),�(960),�(100):�
P
Z��txA
d�
nȎ�(4)�
x� 1:X1%=0:Y1%=�(960)
�� 2:X1%=1280:Y1%=�(960)
�� 3:X1%=�(1280):Y1%=0
�� 4:X1%=�(1280):Y1%=960
��
��L(X1%,Y1%,640,480,64,8)
��0
�
���L(X1,Y1,X2,Y2,W,D)
�� L,T1,T2,F,HT,WT,XA,YA,WA
�&WT=�(X2-X1)+W:HT=�(Y2-Y1)+W:WA=W/2
�XA=X1:� X2<X1 XA=X2
�YA=Y1:� Y2<Y1 YA=Y2
�Cș"OS_SpriteOp",256+16,SPR,"LS",0,XA-WA,YA-WA,XA-WA+WT,YA-WA+HT
#ș"OS_SpriteOp",256+29,SPR,"LS"
#ș"OS_SpriteOp",256+61,SPR,"LS"
&�0Ȝ0:ȓ Ȑ 0,0,WT+4,HT+4:�63Ȝ255
"+X1-=XA-WA:Y1-=YA-WA:X2-=XA-WA:Y2-=YA-WA
,)L=�((X1-X2)^2+(Y1-Y2)^2):� X1>X2 L=-L
6� L<>0 �
@!T1=�((Y1-Y2)/L):T2=T1+�:W=W/2
J)�X1+W*�T1,Y1+W*�T1:�X1+W*�T2,Y1+W*�T2
T�&75,X2+W*�T2,Y2+W*�T2
^ȏ Ȑ X1,Y1,W:ȏ Ȑ X2,Y2,W
h�
rȏ Ȑ X1,Y1,W
|�
�.F=�(L):XA=XA-D*(X1-X2)/F:YA=YA+D*(Y2-Y1)/F
�"ș"OS_SpriteOp",256+61,SPR,0:�
�/ș"OS_SpriteOp",256+34,SPR,"LS",XA-W,YA-W,8
��
�
� ș"OS_SpriteOp",256+61,SPR,0
��:�" at line "+�(�)
�
00000000  0d 00 0a 11 f4 20 3e 20  42 4c 41 43 4b 48 4f 4c  |..... > BLACKHOL|
00000010  45 0d 00 14 04 0d 00 1e  09 eb 32 38 3a 87 0d 00  |E.........28:...|
00000020  28 17 de 20 53 50 52 20  26 38 30 30 30 30 2c 52  |(.. SPR &80000,R|
00000030  4f 54 20 33 32 0d 00 32  2b 53 50 52 21 30 3d 26  |OT 32..2+SPR!0=&|
00000040  37 46 46 46 46 3a 53 50  52 21 34 3d 30 3a 53 50  |7FFFF:SPR!4=0:SP|
00000050  52 21 38 3d 31 36 3a 53  50 52 21 31 32 3d 31 36  |R!8=16:SPR!12=16|
00000060  0d 00 3c 04 0d 00 46 33  e3 4e 25 3d 31 b8 31 30  |..<...F3.N%=1.10|
00000070  30 30 3a e6 b3 28 36 33  29 3a c8 8f 20 c8 90 20  |00:..(63):.. .. |
00000080  b3 28 31 32 38 30 29 2c  b3 28 39 36 30 29 2c b3  |.(1280),.(960),.|
00000090  28 31 30 30 29 3a ed 0d  00 50 04 0d 00 5a 0b ee  |(100):...P...Z..|
000000a0  85 e5 8d 74 78 41 0d 00  64 05 f5 0d 00 6e 0b c8  |...txA..d....n..|
000000b0  8e b3 28 34 29 ca 0d 00  78 18 c9 20 31 3a 58 31  |..(4)...x.. 1:X1|
000000c0  25 3d 30 3a 59 31 25 3d  b3 28 39 36 30 29 0d 00  |%=0:Y1%=.(960)..|
000000d0  82 1b c9 20 32 3a 58 31  25 3d 31 32 38 30 3a 59  |... 2:X1%=1280:Y|
000000e0  31 25 3d b3 28 39 36 30  29 0d 00 8c 19 c9 20 33  |1%=.(960)..... 3|
000000f0  3a 58 31 25 3d b3 28 31  32 38 30 29 3a 59 31 25  |:X1%=.(1280):Y1%|
00000100  3d 30 0d 00 96 1b c9 20  34 3a 58 31 25 3d b3 28  |=0..... 4:X1%=.(|
00000110  31 32 38 30 29 3a 59 31  25 3d 39 36 30 0d 00 a0  |1280):Y1%=960...|
00000120  05 cb 0d 00 aa 1c f2 4c  28 58 31 25 2c 59 31 25  |.......L(X1%,Y1%|
00000130  2c 36 34 30 2c 34 38 30  2c 36 34 2c 38 29 0d 00  |,640,480,64,8)..|
00000140  b4 06 fd 30 0d 00 be 04  0d 00 c8 18 dd f2 4c 28  |...0..........L(|
00000150  58 31 2c 59 31 2c 58 32  2c 59 32 2c 57 2c 44 29  |X1,Y1,X2,Y2,W,D)|
00000160  0d 00 d2 1e ea 20 4c 2c  54 31 2c 54 32 2c 46 2c  |..... L,T1,T2,F,|
00000170  48 54 2c 57 54 2c 58 41  2c 59 41 2c 57 41 0d 00  |HT,WT,XA,YA,WA..|
00000180  dc 26 57 54 3d 94 28 58  32 2d 58 31 29 2b 57 3a  |.&WT=.(X2-X1)+W:|
00000190  48 54 3d 94 28 59 32 2d  59 31 29 2b 57 3a 57 41  |HT=.(Y2-Y1)+W:WA|
000001a0  3d 57 2f 32 0d 00 e6 17  58 41 3d 58 31 3a e7 20  |=W/2....XA=X1:. |
000001b0  58 32 3c 58 31 20 58 41  3d 58 32 0d 00 f0 17 59  |X2<X1 XA=X2....Y|
000001c0  41 3d 59 31 3a e7 20 59  32 3c 59 31 20 59 41 3d  |A=Y1:. Y2<Y1 YA=|
000001d0  59 32 0d 00 fa 43 c8 99  22 4f 53 5f 53 70 72 69  |Y2...C.."OS_Spri|
000001e0  74 65 4f 70 22 2c 32 35  36 2b 31 36 2c 53 50 52  |teOp",256+16,SPR|
000001f0  2c 22 4c 53 22 2c 30 2c  58 41 2d 57 41 2c 59 41  |,"LS",0,XA-WA,YA|
00000200  2d 57 41 2c 58 41 2d 57  41 2b 57 54 2c 59 41 2d  |-WA,XA-WA+WT,YA-|
00000210  57 41 2b 48 54 0d 01 04  23 c8 99 22 4f 53 5f 53  |WA+HT...#.."OS_S|
00000220  70 72 69 74 65 4f 70 22  2c 32 35 36 2b 32 39 2c  |priteOp",256+29,|
00000230  53 50 52 2c 22 4c 53 22  0d 01 0e 23 c8 99 22 4f  |SPR,"LS"...#.."O|
00000240  53 5f 53 70 72 69 74 65  4f 70 22 2c 32 35 36 2b  |S_SpriteOp",256+|
00000250  36 31 2c 53 50 52 2c 22  4c 53 22 0d 01 18 26 e6  |61,SPR,"LS"...&.|
00000260  30 c8 9c 30 3a c8 93 20  c8 90 20 30 2c 30 2c 57  |0..0:.. .. 0,0,W|
00000270  54 2b 34 2c 48 54 2b 34  3a e6 36 33 c8 9c 32 35  |T+4,HT+4:.63..25|
00000280  35 0d 01 22 2b 58 31 2d  3d 58 41 2d 57 41 3a 59  |5.."+X1-=XA-WA:Y|
00000290  31 2d 3d 59 41 2d 57 41  3a 58 32 2d 3d 58 41 2d  |1-=YA-WA:X2-=XA-|
000002a0  57 41 3a 59 32 2d 3d 59  41 2d 57 41 0d 01 2c 29  |WA:Y2-=YA-WA..,)|
000002b0  4c 3d b6 28 28 58 31 2d  58 32 29 5e 32 2b 28 59  |L=.((X1-X2)^2+(Y|
000002c0  31 2d 59 32 29 5e 32 29  3a e7 20 58 31 3e 58 32  |1-Y2)^2):. X1>X2|
000002d0  20 4c 3d 2d 4c 0d 01 36  0c e7 20 4c 3c 3e 30 20  | L=-L..6.. L<>0 |
000002e0  8c 0d 01 40 21 54 31 3d  98 28 28 59 31 2d 59 32  |...@!T1=.((Y1-Y2|
000002f0  29 2f 4c 29 3a 54 32 3d  54 31 2b af 3a 57 3d 57  |)/L):T2=T1+.:W=W|
00000300  2f 32 0d 01 4a 29 ec 58  31 2b 57 2a b5 54 31 2c  |/2..J).X1+W*.T1,|
00000310  59 31 2b 57 2a 9b 54 31  3a ec 58 31 2b 57 2a b5  |Y1+W*.T1:.X1+W*.|
00000320  54 32 2c 59 31 2b 57 2a  9b 54 32 0d 01 54 1a f0  |T2,Y1+W*.T2..T..|
00000330  26 37 35 2c 58 32 2b 57  2a b5 54 32 2c 59 32 2b  |&75,X2+W*.T2,Y2+|
00000340  57 2a 9b 54 32 0d 01 5e  1f c8 8f 20 c8 90 20 58  |W*.T2..^... .. X|
00000350  31 2c 59 31 2c 57 3a c8  8f 20 c8 90 20 58 32 2c  |1,Y1,W:.. .. X2,|
00000360  59 32 2c 57 0d 01 68 05  cc 0d 01 72 11 c8 8f 20  |Y2,W..h....r... |
00000370  c8 90 20 58 31 2c 59 31  2c 57 0d 01 7c 05 cd 0d  |.. X1,Y1,W..|...|
00000380  01 86 2e 46 3d 94 28 4c  29 3a 58 41 3d 58 41 2d  |...F=.(L):XA=XA-|
00000390  44 2a 28 58 31 2d 58 32  29 2f 46 3a 59 41 3d 59  |D*(X1-X2)/F:YA=Y|
000003a0  41 2b 44 2a 28 59 32 2d  59 31 29 2f 46 0d 01 90  |A+D*(Y2-Y1)/F...|
000003b0  22 c8 99 22 4f 53 5f 53  70 72 69 74 65 4f 70 22  |".."OS_SpriteOp"|
000003c0  2c 32 35 36 2b 36 31 2c  53 50 52 2c 30 3a 87 0d  |,256+61,SPR,0:..|
000003d0  01 9a 2f c8 99 22 4f 53  5f 53 70 72 69 74 65 4f  |../.."OS_SpriteO|
000003e0  70 22 2c 32 35 36 2b 33  34 2c 53 50 52 2c 22 4c  |p",256+34,SPR,"L|
000003f0  53 22 2c 58 41 2d 57 2c  59 41 2d 57 2c 38 0d 01  |S",XA-W,YA-W,8..|
00000400  a4 05 e1 0d 01 ae 04 0d  01 b8 20 c8 99 22 4f 53  |.......... .."OS|
00000410  5f 53 70 72 69 74 65 4f  70 22 2c 32 35 36 2b 36  |_SpriteOp",256+6|
00000420  31 2c 53 50 52 2c 30 0d  01 c2 17 f6 3a f1 22 20  |1,SPR,0.....:." |
00000430  61 74 20 6c 69 6e 65 20  22 2b c3 28 9e 29 0d ff  |at line "+.(.)..|
00000440