Home » Personal collection » Acorn DFS disks » dfs_box03_disk03_format_some_games_2.scp » PAINT

PAINT

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 DFS disks » dfs_box03_disk03_format_some_games_2.scp
Filename: PAINT
Read OK:
File size: 06B0 bytes
Load address: FF1900
Exec address: FF8023
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10 MODE2 
   20 *FX4,1
   25 VDU30:PRINT"                   ":VDU30
   30 PROCPALLETTE
   40 D=4:C=7
   50 X=500:Y=500
   60 B=0
  100 REPEAT
  105 GCOL3,C+8:PLOT69,X,Y:GCOL3,C
  110 A=GET
  115 GCOL3,C+8:PLOT69,X,Y:GCOL0,C
  130 IFA=136THENX=X-D
  135 IFA=137THENX=X+D 
  140 IFA=138THENY=Y-D
  145 IFA=139THENY=Y+D
  150 IFA=81THEND=40
  155 IFA=83THEND=4
  160 IFA=67THENPROCCOLOUR
  170 IFA=76THENB=1:XA=X:YA=Y:XB=X:YB=Y
  175 IFA=82THENB=2:XA=X:YA=Y:XB=X:YB=Y
  180 IFA=70THENPROCFILL
  185 IFA=84ANDB=0THENB=3:XA=X:YA=Y
  186 IFA=84ANDB=3THENXB=X:YB=Y:XC=X:YC=Y
  190 IFA=87THENB=4
  200 IFB=1THENPROCLINE
  210 IFB=2THENPROCRECT
  220 IFB=3THEN PROCTRIANGLE
  230 IFB=4THENPROCFOLLOW
  250 IFA=75THENPROCSAVE
  260 IFA=71THENPROCLOAD:GOTO20
  280 UNTIL FALSE
  290 END
  300 DEFPROCPALLETTE
  310 FORC=0TO7
  315 GCOL0,C
  320 X=C*100
  330 MOVEX,1000:DRAWX+80,1000:DRAWX+80,1020:DRAWX,1020:DRAWX,1000
  340 NEXT
  350 ENDPROC
  400 DEFPROCLINE
  410 GCOL3,C+8
  420 MOVEXA,YA:DRAWXB,YB
  430 MOVEXA,YA:DRAWX,Y
  440 XB=X:YB=Y
  450 GCOL0,C
  460 IFA<>32THEN490
  470 MOVEXA,YA:DRAWX,Y
  480 B=0
  490 ENDPROC
  500 DEFPROCCOLOUR
  510 IFX<0ORX>800THEN590
  520 IFY<1000ORY>1020THEN590
  530 C=X DIV100
  590 ENDPROC
  600 DEFPROCRECT
  610 GCOL3,C+8
  620 MOVEXA,YA:DRAWXB,YA:DRAWXB,YB:DRAWXA,YB:DRAWXA,YA
  630 DRAWX,YA:DRAWX,Y:DRAWXA,Y:DRAWXA,YA:MOVEX,Y
  640 XB=X:YB=Y
  650 GCOL0,C
  660 IFA<>32THEN690
  670DRAWX,YA:DRAWXA,YA:DRAWXA,Y:DRAWX,Y
  680 B=0
  690 ENDPROC
  700 DEFPROCFILL
  710 XA=X:YA=Y
  715 GCOL0,C
  720 REPEAT
  722 MOVEXA,Y:X=XA
  725 REPEAT
  730 PLOT69,X,Y:X=X+4:UNTILPOINT(X+4,Y)<>0
  735 MOVEXA,Y:X=XA
  740 REPEAT
  745 PLOT69,X,Y:X=X-4:UNTILPOINT(X-4,Y)<>0
  748 Y=Y+4
  750 UNTILPOINT(X,Y)<>0 
  755 MOVEXA,YA:X=XA:Y=YA
  760 REPEAT:REPEAT
  765 PLOT69,X,Y:X=X+4:UNTILPOINT(X+4,Y)<>0
  770 MOVEXA,Y:X=XA
  775 REPEATPLOT69,X,Y:X=X-4:UNTILPOINT(X-4,Y)<>0
  780 MOVEXA,Y:X=XA 
  785 Y=Y-4
  790 UNTILPOINT(X,Y)<>0
  795 ENDPROC
  800 DEFPROCTRIANGLE
  810 GCOL3,C+8
  820 MOVEXA,YA:DRAWXB,YB:DRAWXC,YC:DRAWXA,YA
  830 DRAWXB,YB:DRAWX,Y:DRAWXA,YA:MOVEX,Y
  840 XC=X:YC=Y
  850 GCOL0,C
  860 IFA<>32THEN890
  870 DRAWXA,YA:DRAWXB,YB:DRAWXC,YC
  880 B=0
  890 ENDPROC
  900 DEFPROCFOLLOW
  910 GCOL0,C
  920 PLOT69,X,Y
  930 IFA<>32THEN990
  940 B=0
  990 ENDPROC
 1000 DEFPROCSAVE
 1010 VDU30:INPUT"NAME ? "N$
 1020 *SAVE N$ 3000 7FFF
 1030 ENDPROC
 1050 DEFPROCLOAD
 1055 VDU30:INPUT"NAME ? " N$ 
 1065 *LOAD N$ 3000
 1070 ENDPROC

 �2 
 *FX4,1
# �30:�"                   ":�30
 �PALLETTE
( D=4:C=7
2 X=500:Y=500
< B=0
d �
i �3,C+8:�69,X,Y:�3,C
n A=�
s �3,C+8:�69,X,Y:�0,C
� �A=136�X=X-D
� �A=137�X=X+D 
� �A=138�Y=Y-D
� �A=139�Y=Y+D
� �A=81�D=40
� �A=83�D=4
� �A=67��COLOUR
�" �A=76�B=1:XA=X:YA=Y:XB=X:YB=Y
�" �A=82�B=2:XA=X:YA=Y:XB=X:YB=Y
� �A=70��FILL
� �A=84�B=0�B=3:XA=X:YA=Y
�" �A=84�B=3�XB=X:YB=Y:XC=X:YC=Y
� �A=87�B=4
� �B=1��LINE
� �B=2��RECT
� �B=3� �TRIANGLE
� �B=4��FOLLOW
� �A=75��SAVE
 �A=71��LOAD:�TT@
 � �
" �
, ��PALLETTE
6 �C=0�7
;	 �0,C
@ X=C*100
J2 �X,1000:�X+80,1000:�X+80,1020:�X,1020:�X,1000
T �
^ �
� ��LINE
� �3,C+8
� �XA,YA:�XB,YB
� �XA,YA:�X,Y
� XB=X:YB=Y
�	 �0,C
� �A<>32��djA
� �XA,YA:�X,Y
� B=0
� �
�
 ��COLOUR
� �X<0�X>800��DNB
 �Y<1000�Y>1020��DNB

 C=X �100
N �
X ��RECT
b �3,C+8
l' �XA,YA:�XB,YA:�XB,YB:�XA,YB:�XA,YA
v! �X,YA:�X,Y:�XA,Y:�XA,YA:�X,Y
� XB=X:YB=Y
�	 �0,C
� �A<>32��trB
��X,YA:�XA,YA:�XA,Y:�X,Y
� B=0
� �
� ��FILL
� XA=X:YA=Y
�	 �0,C
� �
� �XA,Y:X=XA
� �
� �69,X,Y:X=X+4:��X+4,Y)<>0
� �XA,Y:X=XA
� �
� �69,X,Y:X=X-4:��X-4,Y)<>0
�
 Y=Y+4
� ��X,Y)<>0 
� �XA,YA:X=XA:Y=YA
� �:�
� �69,X,Y:X=X+4:��X+4,Y)<>0
 �XA,Y:X=XA
 ��69,X,Y:X=X-4:��X-4,Y)<>0
 �XA,Y:X=XA 

 Y=Y-4
 ��X,Y)<>0
 �
  ��TRIANGLE
* �3,C+8
4  �XA,YA:�XB,YB:�XC,YC:�XA,YA
> �XB,YB:�X,Y:�XA,YA:�X,Y
H XC=X:YC=Y
R	 �0,C
\ �A<>32��DzC
f �XA,YA:�XB,YB:�XC,YC
p B=0
z �
�
 ��FOLLOW
�	 �0,C
� �69,X,Y
� �A<>32��d^C
� B=0
� �
� ��SAVE
� �30:�"NAME ? "N$
� *SAVE N$ 3000 7FFF
 �
 ��LOAD
 �30:�"NAME ? " N$ 
) *LOAD N$ 3000
. �
�
00000000  0d 00 0a 08 20 eb 32 20  0d 00 14 0b 20 2a 46 58  |.... .2 .... *FX|
00000010  34 2c 31 0d 00 19 23 20  ef 33 30 3a f1 22 20 20  |4,1...# .30:."  |
00000020  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000030  20 22 3a ef 33 30 0d 00  1e 0e 20 f2 50 41 4c 4c  | ":.30.... .PALL|
00000040  45 54 54 45 0d 00 28 0c  20 44 3d 34 3a 43 3d 37  |ETTE..(. D=4:C=7|
00000050  0d 00 32 10 20 58 3d 35  30 30 3a 59 3d 35 30 30  |..2. X=500:Y=500|
00000060  0d 00 3c 08 20 42 3d 30  0d 00 64 06 20 f5 0d 00  |..<. B=0..d. ...|
00000070  69 18 20 e6 33 2c 43 2b  38 3a f0 36 39 2c 58 2c  |i. .3,C+8:.69,X,|
00000080  59 3a e6 33 2c 43 0d 00  6e 08 20 41 3d a5 0d 00  |Y:.3,C..n. A=...|
00000090  73 18 20 e6 33 2c 43 2b  38 3a f0 36 39 2c 58 2c  |s. .3,C+8:.69,X,|
000000a0  59 3a e6 30 2c 43 0d 00  82 11 20 e7 41 3d 31 33  |Y:.0,C.... .A=13|
000000b0  36 8c 58 3d 58 2d 44 0d  00 87 12 20 e7 41 3d 31  |6.X=X-D.... .A=1|
000000c0  33 37 8c 58 3d 58 2b 44  20 0d 00 8c 11 20 e7 41  |37.X=X+D .... .A|
000000d0  3d 31 33 38 8c 59 3d 59  2d 44 0d 00 91 11 20 e7  |=138.Y=Y-D.... .|
000000e0  41 3d 31 33 39 8c 59 3d  59 2b 44 0d 00 96 0f 20  |A=139.Y=Y+D.... |
000000f0  e7 41 3d 38 31 8c 44 3d  34 30 0d 00 9b 0e 20 e7  |.A=81.D=40.... .|
00000100  41 3d 38 33 8c 44 3d 34  0d 00 a0 12 20 e7 41 3d  |A=83.D=4.... .A=|
00000110  36 37 8c f2 43 4f 4c 4f  55 52 0d 00 aa 22 20 e7  |67..COLOUR..." .|
00000120  41 3d 37 36 8c 42 3d 31  3a 58 41 3d 58 3a 59 41  |A=76.B=1:XA=X:YA|
00000130  3d 59 3a 58 42 3d 58 3a  59 42 3d 59 0d 00 af 22  |=Y:XB=X:YB=Y..."|
00000140  20 e7 41 3d 38 32 8c 42  3d 32 3a 58 41 3d 58 3a  | .A=82.B=2:XA=X:|
00000150  59 41 3d 59 3a 58 42 3d  58 3a 59 42 3d 59 0d 00  |YA=Y:XB=X:YB=Y..|
00000160  b4 10 20 e7 41 3d 37 30  8c f2 46 49 4c 4c 0d 00  |.. .A=70..FILL..|
00000170  b9 1c 20 e7 41 3d 38 34  80 42 3d 30 8c 42 3d 33  |.. .A=84.B=0.B=3|
00000180  3a 58 41 3d 58 3a 59 41  3d 59 0d 00 ba 22 20 e7  |:XA=X:YA=Y..." .|
00000190  41 3d 38 34 80 42 3d 33  8c 58 42 3d 58 3a 59 42  |A=84.B=3.XB=X:YB|
000001a0  3d 59 3a 58 43 3d 58 3a  59 43 3d 59 0d 00 be 0e  |=Y:XC=X:YC=Y....|
000001b0  20 e7 41 3d 38 37 8c 42  3d 34 0d 00 c8 0f 20 e7  | .A=87.B=4.... .|
000001c0  42 3d 31 8c f2 4c 49 4e  45 0d 00 d2 0f 20 e7 42  |B=1..LINE.... .B|
000001d0  3d 32 8c f2 52 45 43 54  0d 00 dc 14 20 e7 42 3d  |=2..RECT.... .B=|
000001e0  33 8c 20 f2 54 52 49 41  4e 47 4c 45 0d 00 e6 11  |3. .TRIANGLE....|
000001f0  20 e7 42 3d 34 8c f2 46  4f 4c 4c 4f 57 0d 00 fa  | .B=4..FOLLOW...|
00000200  10 20 e7 41 3d 37 35 8c  f2 53 41 56 45 0d 01 04  |. .A=75..SAVE...|
00000210  16 20 e7 41 3d 37 31 8c  f2 4c 4f 41 44 3a e5 8d  |. .A=71..LOAD:..|
00000220  54 54 40 0d 01 18 08 20  fd 20 a3 0d 01 22 06 20  |TT@.... . ...". |
00000230  e0 0d 01 2c 0f 20 dd f2  50 41 4c 4c 45 54 54 45  |...,. ..PALLETTE|
00000240  0d 01 36 0b 20 e3 43 3d  30 b8 37 0d 01 3b 09 20  |..6. .C=0.7..;. |
00000250  e6 30 2c 43 0d 01 40 0c  20 58 3d 43 2a 31 30 30  |.0,C..@. X=C*100|
00000260  0d 01 4a 32 20 ec 58 2c  31 30 30 30 3a df 58 2b  |..J2 .X,1000:.X+|
00000270  38 30 2c 31 30 30 30 3a  df 58 2b 38 30 2c 31 30  |80,1000:.X+80,10|
00000280  32 30 3a df 58 2c 31 30  32 30 3a df 58 2c 31 30  |20:.X,1020:.X,10|
00000290  30 30 0d 01 54 06 20 ed  0d 01 5e 06 20 e1 0d 01  |00..T. ...^. ...|
000002a0  90 0b 20 dd f2 4c 49 4e  45 0d 01 9a 0b 20 e6 33  |.. ..LINE.... .3|
000002b0  2c 43 2b 38 0d 01 a4 12  20 ec 58 41 2c 59 41 3a  |,C+8.... .XA,YA:|
000002c0  df 58 42 2c 59 42 0d 01  ae 10 20 ec 58 41 2c 59  |.XB,YB.... .XA,Y|
000002d0  41 3a df 58 2c 59 0d 01  b8 0e 20 58 42 3d 58 3a  |A:.X,Y.... XB=X:|
000002e0  59 42 3d 59 0d 01 c2 09  20 e6 30 2c 43 0d 01 cc  |YB=Y.... .0,C...|
000002f0  10 20 e7 41 3c 3e 33 32  8c 8d 64 6a 41 0d 01 d6  |. .A<>32..djA...|
00000300  10 20 ec 58 41 2c 59 41  3a df 58 2c 59 0d 01 e0  |. .XA,YA:.X,Y...|
00000310  08 20 42 3d 30 0d 01 ea  06 20 e1 0d 01 f4 0d 20  |. B=0.... ..... |
00000320  dd f2 43 4f 4c 4f 55 52  0d 01 fe 14 20 e7 58 3c  |..COLOUR.... .X<|
00000330  30 84 58 3e 38 30 30 8c  8d 44 4e 42 0d 02 08 18  |0.X>800..DNB....|
00000340  20 e7 59 3c 31 30 30 30  84 59 3e 31 30 32 30 8c  | .Y<1000.Y>1020.|
00000350  8d 44 4e 42 0d 02 12 0d  20 43 3d 58 20 81 31 30  |.DNB.... C=X .10|
00000360  30 0d 02 4e 06 20 e1 0d  02 58 0b 20 dd f2 52 45  |0..N. ...X. ..RE|
00000370  43 54 0d 02 62 0b 20 e6  33 2c 43 2b 38 0d 02 6c  |CT..b. .3,C+8..l|
00000380  27 20 ec 58 41 2c 59 41  3a df 58 42 2c 59 41 3a  |' .XA,YA:.XB,YA:|
00000390  df 58 42 2c 59 42 3a df  58 41 2c 59 42 3a df 58  |.XB,YB:.XA,YB:.X|
000003a0  41 2c 59 41 0d 02 76 21  20 df 58 2c 59 41 3a df  |A,YA..v! .X,YA:.|
000003b0  58 2c 59 3a df 58 41 2c  59 3a df 58 41 2c 59 41  |X,Y:.XA,Y:.XA,YA|
000003c0  3a ec 58 2c 59 0d 02 80  0e 20 58 42 3d 58 3a 59  |:.X,Y.... XB=X:Y|
000003d0  42 3d 59 0d 02 8a 09 20  e6 30 2c 43 0d 02 94 10  |B=Y.... .0,C....|
000003e0  20 e7 41 3c 3e 33 32 8c  8d 74 72 42 0d 02 9e 1b  | .A<>32..trB....|
000003f0  df 58 2c 59 41 3a df 58  41 2c 59 41 3a df 58 41  |.X,YA:.XA,YA:.XA|
00000400  2c 59 3a df 58 2c 59 0d  02 a8 08 20 42 3d 30 0d  |,Y:.X,Y.... B=0.|
00000410  02 b2 06 20 e1 0d 02 bc  0b 20 dd f2 46 49 4c 4c  |... ..... ..FILL|
00000420  0d 02 c6 0e 20 58 41 3d  58 3a 59 41 3d 59 0d 02  |.... XA=X:YA=Y..|
00000430  cb 09 20 e6 30 2c 43 0d  02 d0 06 20 f5 0d 02 d2  |.. .0,C.... ....|
00000440  0f 20 ec 58 41 2c 59 3a  58 3d 58 41 0d 02 d5 06  |. .XA,Y:X=XA....|
00000450  20 f5 0d 02 da 1e 20 f0  36 39 2c 58 2c 59 3a 58  | ..... .69,X,Y:X|
00000460  3d 58 2b 34 3a fd b0 58  2b 34 2c 59 29 3c 3e 30  |=X+4:..X+4,Y)<>0|
00000470  0d 02 df 0f 20 ec 58 41  2c 59 3a 58 3d 58 41 0d  |.... .XA,Y:X=XA.|
00000480  02 e4 06 20 f5 0d 02 e9  1e 20 f0 36 39 2c 58 2c  |... ..... .69,X,|
00000490  59 3a 58 3d 58 2d 34 3a  fd b0 58 2d 34 2c 59 29  |Y:X=X-4:..X-4,Y)|
000004a0  3c 3e 30 0d 02 ec 0a 20  59 3d 59 2b 34 0d 02 ee  |<>0.... Y=Y+4...|
000004b0  0f 20 fd b0 58 2c 59 29  3c 3e 30 20 0d 02 f3 15  |. ..X,Y)<>0 ....|
000004c0  20 ec 58 41 2c 59 41 3a  58 3d 58 41 3a 59 3d 59  | .XA,YA:X=XA:Y=Y|
000004d0  41 0d 02 f8 08 20 f5 3a  f5 0d 02 fd 1e 20 f0 36  |A.... .:..... .6|
000004e0  39 2c 58 2c 59 3a 58 3d  58 2b 34 3a fd b0 58 2b  |9,X,Y:X=X+4:..X+|
000004f0  34 2c 59 29 3c 3e 30 0d  03 02 0f 20 ec 58 41 2c  |4,Y)<>0.... .XA,|
00000500  59 3a 58 3d 58 41 0d 03  07 1f 20 f5 f0 36 39 2c  |Y:X=XA.... ..69,|
00000510  58 2c 59 3a 58 3d 58 2d  34 3a fd b0 58 2d 34 2c  |X,Y:X=X-4:..X-4,|
00000520  59 29 3c 3e 30 0d 03 0c  10 20 ec 58 41 2c 59 3a  |Y)<>0.... .XA,Y:|
00000530  58 3d 58 41 20 0d 03 11  0a 20 59 3d 59 2d 34 0d  |X=XA .... Y=Y-4.|
00000540  03 16 0e 20 fd b0 58 2c  59 29 3c 3e 30 0d 03 1b  |... ..X,Y)<>0...|
00000550  06 20 e1 0d 03 20 0f 20  dd f2 54 52 49 41 4e 47  |. ... . ..TRIANG|
00000560  4c 45 0d 03 2a 0b 20 e6  33 2c 43 2b 38 0d 03 34  |LE..*. .3,C+8..4|
00000570  20 20 ec 58 41 2c 59 41  3a df 58 42 2c 59 42 3a  |  .XA,YA:.XB,YB:|
00000580  df 58 43 2c 59 43 3a df  58 41 2c 59 41 0d 03 3e  |.XC,YC:.XA,YA..>|
00000590  1c 20 df 58 42 2c 59 42  3a df 58 2c 59 3a df 58  |. .XB,YB:.X,Y:.X|
000005a0  41 2c 59 41 3a ec 58 2c  59 0d 03 48 0e 20 58 43  |A,YA:.X,Y..H. XC|
000005b0  3d 58 3a 59 43 3d 59 0d  03 52 09 20 e6 30 2c 43  |=X:YC=Y..R. .0,C|
000005c0  0d 03 5c 10 20 e7 41 3c  3e 33 32 8c 8d 44 7a 43  |..\. .A<>32..DzC|
000005d0  0d 03 66 19 20 df 58 41  2c 59 41 3a df 58 42 2c  |..f. .XA,YA:.XB,|
000005e0  59 42 3a df 58 43 2c 59  43 0d 03 70 08 20 42 3d  |YB:.XC,YC..p. B=|
000005f0  30 0d 03 7a 06 20 e1 0d  03 84 0d 20 dd f2 46 4f  |0..z. ..... ..FO|
00000600  4c 4c 4f 57 0d 03 8e 09  20 e6 30 2c 43 0d 03 98  |LLOW.... .0,C...|
00000610  0c 20 f0 36 39 2c 58 2c  59 0d 03 a2 10 20 e7 41  |. .69,X,Y.... .A|
00000620  3c 3e 33 32 8c 8d 64 5e  43 0d 03 ac 08 20 42 3d  |<>32..d^C.... B=|
00000630  30 0d 03 de 06 20 e1 0d  03 e8 0b 20 dd f2 53 41  |0.... ..... ..SA|
00000640  56 45 0d 03 f2 15 20 ef  33 30 3a e8 22 4e 41 4d  |VE.... .30:."NAM|
00000650  45 20 3f 20 22 4e 24 0d  03 fc 17 20 2a 53 41 56  |E ? "N$.... *SAV|
00000660  45 20 4e 24 20 33 30 30  30 20 37 46 46 46 0d 04  |E N$ 3000 7FFF..|
00000670  06 06 20 e1 0d 04 1a 0b  20 dd f2 4c 4f 41 44 0d  |.. ..... ..LOAD.|
00000680  04 1f 17 20 ef 33 30 3a  e8 22 4e 41 4d 45 20 3f  |... .30:."NAME ?|
00000690  20 22 20 4e 24 20 0d 04  29 12 20 2a 4c 4f 41 44  | " N$ ..). *LOAD|
000006a0  20 4e 24 20 33 30 30 30  0d 04 2e 06 20 e1 0d ff  | N$ 3000.... ...|
000006b0
PAINT.m0
PAINT.m1
PAINT.m2
PAINT.m4
PAINT.m5