Home » Personal collection » Acorn ADFS disks » Greaseweazled » dfs_box04_disk02b_eug_scripts.adf » SHIP64/DispSpr

SHIP64/DispSpr

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 » Acorn ADFS disks » Greaseweazled » dfs_box04_disk02b_eug_scripts.adf
Filename: SHIP64/DispSpr
Read OK:
File size: 053E bytes
Load address: FFFF0E00
Exec address: FFFF802B
File contents
   10 MODE 2:DIMcl%(3):*LO. SHIP3
   20 PRINT"   "'"   "
   30 FORY=0TO15:R=3
   40 FORX=INT((Y/5.06)^2) TO 8+((Y/8)^2)
   50 IF Y=0 THEN R=3
   60 GCOL0,R:R=1
   70 MOVEX*8,1023-Y*4:DRAWX*8,1023-Y*4
   80 NEXT,:PROCdata:REPEAT UNTIL INKEY(-99)
   90 PRINTTAB(0,0)"   "'"   "
  100 FORY=0TO15:R=3:FORX=12-INT((Y/5.06)^2) TO 4-((Y/8)^2) STEP -1
  110 IF Y=0 THEN R=3
  120 GCOL0,R:R=1
  130 MOVEX*8,1023-Y*4:DRAWX*8,1023-Y*4:NEXT,:PROCdata:REPEAT UNTIL INKEY(-99)
  140 PRINTTAB(0,0)"   "'"   "
  150 FORY=0TO7:R=3:FORX=10-Y TO11:GCOL0,R:R=1:MOVEX*8,1023-Y*4:DRAWX*8,1023-Y*4:NEXT,:FORY=8TO11:R=3:FORX=INT(6-Y/2) TO3:GCOL0,R:R=1:MOVEX*8,1023-Y*4:DRAWX*8,1023-Y*4:NEXT,:PROCdata:REPEAT UNTIL INKEY(-99)
  160 PRINTTAB(0,0)"   "'"   "
  170 VDU23,128,0,4,6,255,255,6,4,0:GCOL0,4
  180 VDU5:MOVE4*8,1023:VDU128,4
  190 PRINTTAB(0,1)" ";
  200 FORY=0TO7:FORX=0TOY+1:GCOL0,1:MOVEX*8,1023-Y*4:DRAWX*8,1023-Y*4:NEXT,:FORY=8TO11:FORX=8TOINT(5+Y/2):GCOL0,1:MOVEX*8,1023-Y*4:DRAWX*8,1023-Y*4:NEXT,:PROCdata:REPEAT UNTIL INKEY(-99)
  210 PRINTTAB(0,0)"   "'"   "
  220 PROCdraw(0)
  230 PROCdraw(&80)
  240 PROCdraw(&100)
  250 PROCdraw(&20)
  260 PROCdraw(&A0)
  270 PROCdraw(&120)
  280 END
  290 :
  300 DEFPROCdraw(m)
  310 FORR=&3000TO&301F:?R=?(R+&3200+m):?(R+&280)=?(R+&3240+m):NEXT:PROCdata:REPEAT UNTIL INKEY(-99)
  320 ENDPROC
  330 :
  340 DEFPROCdata
  350 PRINTTAB(0,2)"   ";
  360 FORad=0TO63STEP4:FORa=ad TOad+3
  370 y=1023-4*INT(a/3):x=32*(a MOD3)
  380 val=64*FNC(POINT(x,y))+16*FNC(POINT(x+8,y))+4*FNC(POINT(x+16,y))+FNC(POINT(x+24,y))
  390 s$=STR$~val:IFLEN(s$)=1THENs$="0"+s$
  400 PRINTs$;" ";
  410 NEXT:PRINT'"   ";:NEXT:ENDPROC
  420 :
  430 DEFFNC(c%)
  440 IF c%=0 THEN =0
  450 IF c%=cl%(1) THEN =1
  460 IF c%=cl%(2) THEN =2
  470 IF c%=cl%(3) THEN =3
  480 cmax%=cmax%+1:IFcmax%=4THENPRINT"Err":END
  490 cl%(cmax%)=c%:=cmax%

 � 2:�cl%(3):*LO. SHIP3
 �"   "'"   "
 �Y=0�15:R=3
(# �X=�((Y/5.06)^2) � 8+((Y/8)^2)
2 � Y=0 � R=3
<
 �0,R:R=1
F  �X*8,1023-Y*4:�X*8,1023-Y*4
P �,:�data:� � �(-99)
Z �0,0)"   "'"   "
d7 �Y=0�15:R=3:�X=12-�((Y/5.06)^2) � 4-((Y/8)^2) � -1
n � Y=0 � R=3
x
 �0,R:R=1
�4 �X*8,1023-Y*4:�X*8,1023-Y*4:�,:�data:� � �(-99)
� �0,0)"   "'"   "
�� �Y=0�7:R=3:�X=10-Y �11:�0,R:R=1:�X*8,1023-Y*4:�X*8,1023-Y*4:�,:�Y=8�11:R=3:�X=�(6-Y/2) �3:�0,R:R=1:�X*8,1023-Y*4:�X*8,1023-Y*4:�,:�data:� � �(-99)
� �0,0)"   "'"   "
�% �23,128,0,4,6,255,255,6,4,0:�0,4
� �5:�4*8,1023:�128,4
� �0,1)" ";
ȃ �Y=0�7:�X=0�Y+1:�0,1:�X*8,1023-Y*4:�X*8,1023-Y*4:�,:�Y=8�11:�X=8��(5+Y/2):�0,1:�X*8,1023-Y*4:�X*8,1023-Y*4:�,:�data:� � �(-99)
� �0,0)"   "'"   "
�
 �draw(0)
� �draw(&80)
� �draw(&100)
� �draw(&20)
 �draw(&A0)
 �draw(&120)
 �
" :
, ��draw(m)
6M �R=&3000�&301F:?R=?(R+&3200+m):?(R+&280)=?(R+&3240+m):�:�data:� � �(-99)
@ �
J :
T ��data
^ �0,2)"   ";
h �ad=0�63�4:�a=ad �ad+3
r  y=1023-4*�(a/3):x=32*(a �3)
|@ val=64*�C(�x,y))+16*�C(�x+8,y))+4*�C(�x+16,y))+�C(�x+24,y))
�  s$=�~val:�(s$)=1�s$="0"+s$
�
 �s$;" ";
� �:�'"   ";:�:�
� :
� ݤC(c%)
� � c%=0 � =0
� � c%=cl%(1) � =1
� � c%=cl%(2) � =2
� � c%=cl%(3) � =3
�$ cmax%=cmax%+1:�cmax%=4��"Err":�
� cl%(cmax%)=c%:=cmax%
�
00000000  0d 00 0a 1b 20 eb 20 32  3a de 63 6c 25 28 33 29  |.... . 2:.cl%(3)|
00000010  3a 2a 4c 4f 2e 20 53 48  49 50 33 0d 00 14 11 20  |:*LO. SHIP3.... |
00000020  f1 22 20 20 20 22 27 22  20 20 20 22 0d 00 1e 10  |."   "'"   "....|
00000030  20 e3 59 3d 30 b8 31 35  3a 52 3d 33 0d 00 28 23  | .Y=0.15:R=3..(#|
00000040  20 e3 58 3d a8 28 28 59  2f 35 2e 30 36 29 5e 32  | .X=.((Y/5.06)^2|
00000050  29 20 b8 20 38 2b 28 28  59 2f 38 29 5e 32 29 0d  |) . 8+((Y/8)^2).|
00000060  00 32 10 20 e7 20 59 3d  30 20 8c 20 52 3d 33 0d  |.2. . Y=0 . R=3.|
00000070  00 3c 0d 20 e6 30 2c 52  3a 52 3d 31 0d 00 46 20  |.<. .0,R:R=1..F |
00000080  20 ec 58 2a 38 2c 31 30  32 33 2d 59 2a 34 3a df  | .X*8,1023-Y*4:.|
00000090  58 2a 38 2c 31 30 32 33  2d 59 2a 34 0d 00 50 18  |X*8,1023-Y*4..P.|
000000a0  20 ed 2c 3a f2 64 61 74  61 3a f5 20 fd 20 a6 28  | .,:.data:. . .(|
000000b0  2d 39 39 29 0d 00 5a 16  20 f1 8a 30 2c 30 29 22  |-99)..Z. ..0,0)"|
000000c0  20 20 20 22 27 22 20 20  20 22 0d 00 64 37 20 e3  |   "'"   "..d7 .|
000000d0  59 3d 30 b8 31 35 3a 52  3d 33 3a e3 58 3d 31 32  |Y=0.15:R=3:.X=12|
000000e0  2d a8 28 28 59 2f 35 2e  30 36 29 5e 32 29 20 b8  |-.((Y/5.06)^2) .|
000000f0  20 34 2d 28 28 59 2f 38  29 5e 32 29 20 88 20 2d  | 4-((Y/8)^2) . -|
00000100  31 0d 00 6e 10 20 e7 20  59 3d 30 20 8c 20 52 3d  |1..n. . Y=0 . R=|
00000110  33 0d 00 78 0d 20 e6 30  2c 52 3a 52 3d 31 0d 00  |3..x. .0,R:R=1..|
00000120  82 34 20 ec 58 2a 38 2c  31 30 32 33 2d 59 2a 34  |.4 .X*8,1023-Y*4|
00000130  3a df 58 2a 38 2c 31 30  32 33 2d 59 2a 34 3a ed  |:.X*8,1023-Y*4:.|
00000140  2c 3a f2 64 61 74 61 3a  f5 20 fd 20 a6 28 2d 39  |,:.data:. . .(-9|
00000150  39 29 0d 00 8c 16 20 f1  8a 30 2c 30 29 22 20 20  |9).... ..0,0)"  |
00000160  20 22 27 22 20 20 20 22  0d 00 96 97 20 e3 59 3d  | "'"   ".... .Y=|
00000170  30 b8 37 3a 52 3d 33 3a  e3 58 3d 31 30 2d 59 20  |0.7:R=3:.X=10-Y |
00000180  b8 31 31 3a e6 30 2c 52  3a 52 3d 31 3a ec 58 2a  |.11:.0,R:R=1:.X*|
00000190  38 2c 31 30 32 33 2d 59  2a 34 3a df 58 2a 38 2c  |8,1023-Y*4:.X*8,|
000001a0  31 30 32 33 2d 59 2a 34  3a ed 2c 3a e3 59 3d 38  |1023-Y*4:.,:.Y=8|
000001b0  b8 31 31 3a 52 3d 33 3a  e3 58 3d a8 28 36 2d 59  |.11:R=3:.X=.(6-Y|
000001c0  2f 32 29 20 b8 33 3a e6  30 2c 52 3a 52 3d 31 3a  |/2) .3:.0,R:R=1:|
000001d0  ec 58 2a 38 2c 31 30 32  33 2d 59 2a 34 3a df 58  |.X*8,1023-Y*4:.X|
000001e0  2a 38 2c 31 30 32 33 2d  59 2a 34 3a ed 2c 3a f2  |*8,1023-Y*4:.,:.|
000001f0  64 61 74 61 3a f5 20 fd  20 a6 28 2d 39 39 29 0d  |data:. . .(-99).|
00000200  00 a0 16 20 f1 8a 30 2c  30 29 22 20 20 20 22 27  |... ..0,0)"   "'|
00000210  22 20 20 20 22 0d 00 aa  25 20 ef 32 33 2c 31 32  |"   "...% .23,12|
00000220  38 2c 30 2c 34 2c 36 2c  32 35 35 2c 32 35 35 2c  |8,0,4,6,255,255,|
00000230  36 2c 34 2c 30 3a e6 30  2c 34 0d 00 b4 18 20 ef  |6,4,0:.0,4.... .|
00000240  35 3a ec 34 2a 38 2c 31  30 32 33 3a ef 31 32 38  |5:.4*8,1023:.128|
00000250  2c 34 0d 00 be 0f 20 f1  8a 30 2c 31 29 22 20 22  |,4.... ..0,1)" "|
00000260  3b 0d 00 c8 83 20 e3 59  3d 30 b8 37 3a e3 58 3d  |;.... .Y=0.7:.X=|
00000270  30 b8 59 2b 31 3a e6 30  2c 31 3a ec 58 2a 38 2c  |0.Y+1:.0,1:.X*8,|
00000280  31 30 32 33 2d 59 2a 34  3a df 58 2a 38 2c 31 30  |1023-Y*4:.X*8,10|
00000290  32 33 2d 59 2a 34 3a ed  2c 3a e3 59 3d 38 b8 31  |23-Y*4:.,:.Y=8.1|
000002a0  31 3a e3 58 3d 38 b8 a8  28 35 2b 59 2f 32 29 3a  |1:.X=8..(5+Y/2):|
000002b0  e6 30 2c 31 3a ec 58 2a  38 2c 31 30 32 33 2d 59  |.0,1:.X*8,1023-Y|
000002c0  2a 34 3a df 58 2a 38 2c  31 30 32 33 2d 59 2a 34  |*4:.X*8,1023-Y*4|
000002d0  3a ed 2c 3a f2 64 61 74  61 3a f5 20 fd 20 a6 28  |:.,:.data:. . .(|
000002e0  2d 39 39 29 0d 00 d2 16  20 f1 8a 30 2c 30 29 22  |-99).... ..0,0)"|
000002f0  20 20 20 22 27 22 20 20  20 22 0d 00 dc 0d 20 f2  |   "'"   ".... .|
00000300  64 72 61 77 28 30 29 0d  00 e6 0f 20 f2 64 72 61  |draw(0).... .dra|
00000310  77 28 26 38 30 29 0d 00  f0 10 20 f2 64 72 61 77  |w(&80).... .draw|
00000320  28 26 31 30 30 29 0d 00  fa 0f 20 f2 64 72 61 77  |(&100).... .draw|
00000330  28 26 32 30 29 0d 01 04  0f 20 f2 64 72 61 77 28  |(&20).... .draw(|
00000340  26 41 30 29 0d 01 0e 10  20 f2 64 72 61 77 28 26  |&A0).... .draw(&|
00000350  31 32 30 29 0d 01 18 06  20 e0 0d 01 22 06 20 3a  |120).... ...". :|
00000360  0d 01 2c 0e 20 dd f2 64  72 61 77 28 6d 29 0d 01  |..,. ..draw(m)..|
00000370  36 4d 20 e3 52 3d 26 33  30 30 30 b8 26 33 30 31  |6M .R=&3000.&301|
00000380  46 3a 3f 52 3d 3f 28 52  2b 26 33 32 30 30 2b 6d  |F:?R=?(R+&3200+m|
00000390  29 3a 3f 28 52 2b 26 32  38 30 29 3d 3f 28 52 2b  |):?(R+&280)=?(R+|
000003a0  26 33 32 34 30 2b 6d 29  3a ed 3a f2 64 61 74 61  |&3240+m):.:.data|
000003b0  3a f5 20 fd 20 a6 28 2d  39 39 29 0d 01 40 06 20  |:. . .(-99)..@. |
000003c0  e1 0d 01 4a 06 20 3a 0d  01 54 0b 20 dd f2 64 61  |...J. :..T. ..da|
000003d0  74 61 0d 01 5e 11 20 f1  8a 30 2c 32 29 22 20 20  |ta..^. ..0,2)"  |
000003e0  20 22 3b 0d 01 68 1b 20  e3 61 64 3d 30 b8 36 33  | ";..h. .ad=0.63|
000003f0  88 34 3a e3 61 3d 61 64  20 b8 61 64 2b 33 0d 01  |.4:.a=ad .ad+3..|
00000400  72 20 20 79 3d 31 30 32  33 2d 34 2a a8 28 61 2f  |r  y=1023-4*.(a/|
00000410  33 29 3a 78 3d 33 32 2a  28 61 20 83 33 29 0d 01  |3):x=32*(a .3)..|
00000420  7c 40 20 76 61 6c 3d 36  34 2a a4 43 28 b0 78 2c  ||@ val=64*.C(.x,|
00000430  79 29 29 2b 31 36 2a a4  43 28 b0 78 2b 38 2c 79  |y))+16*.C(.x+8,y|
00000440  29 29 2b 34 2a a4 43 28  b0 78 2b 31 36 2c 79 29  |))+4*.C(.x+16,y)|
00000450  29 2b a4 43 28 b0 78 2b  32 34 2c 79 29 29 0d 01  |)+.C(.x+24,y))..|
00000460  86 20 20 73 24 3d c3 7e  76 61 6c 3a e7 a9 28 73  |.  s$=.~val:..(s|
00000470  24 29 3d 31 8c 73 24 3d  22 30 22 2b 73 24 0d 01  |$)=1.s$="0"+s$..|
00000480  90 0d 20 f1 73 24 3b 22  20 22 3b 0d 01 9a 13 20  |.. .s$;" ";.... |
00000490  ed 3a f1 27 22 20 20 20  22 3b 3a ed 3a e1 0d 01  |.:.'"   ";:.:...|
000004a0  a4 06 20 3a 0d 01 ae 0c  20 dd a4 43 28 63 25 29  |.. :.... ..C(c%)|
000004b0  0d 01 b8 10 20 e7 20 63  25 3d 30 20 8c 20 3d 30  |.... . c%=0 . =0|
000004c0  0d 01 c2 15 20 e7 20 63  25 3d 63 6c 25 28 31 29  |.... . c%=cl%(1)|
000004d0  20 8c 20 3d 31 0d 01 cc  15 20 e7 20 63 25 3d 63  | . =1.... . c%=c|
000004e0  6c 25 28 32 29 20 8c 20  3d 32 0d 01 d6 15 20 e7  |l%(2) . =2.... .|
000004f0  20 63 25 3d 63 6c 25 28  33 29 20 8c 20 3d 33 0d  | c%=cl%(3) . =3.|
00000500  01 e0 24 20 63 6d 61 78  25 3d 63 6d 61 78 25 2b  |..$ cmax%=cmax%+|
00000510  31 3a e7 63 6d 61 78 25  3d 34 8c f1 22 45 72 72  |1:.cmax%=4.."Err|
00000520  22 3a e0 0d 01 ea 19 20  63 6c 25 28 63 6d 61 78  |":..... cl%(cmax|
00000530  25 29 3d 63 25 3a 3d 63  6d 61 78 25 0d ff        |%)=c%:=cmax%..|
0000053e
SHIP64/DispSpr.m0
SHIP64/DispSpr.m1
SHIP64/DispSpr.m2
SHIP64/DispSpr.m4
SHIP64/DispSpr.m5