Home » Personal collection » Acorn hard disk » misc » dcfprogs » Arcade/Sprites/SprConv

Arcade/Sprites/SprConv

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 hard disk » misc » dcfprogs
Filename: Arcade/Sprites/SprConv
Read OK:
File size: 01D0 bytes
Load address: 0000
Exec address: 0000
Duplicates

There are 4 duplicate copies of this file in the archive:

File contents
   10MODE2:DIM c%(15):FORr=0TO15:READc%(r):NEXT
   20DIM space &1000:*RAM
   30*SLOAD SPRITES
   40FORr=0TO10
   50IF r>15 THEN OSCLI"SCHOOSE "+STR$~r ELSE OSCLI"SCHOOSE 0"+STR$~r
   60PLOT&ED,0,960:FORt=0TO63
   70?(space+128*r+t)=(c%(POINT((t AND &F8)*2+8,1023-(t AND 7)*4))+2*c%(POINT((t AND &F8)*2,1023-(t AND 7)*4)) AND &3F):NEXT
   80FORt=0TO63:?(space+64+128*r+t)=(c%(POINT((t AND &F8)*2+8,991-(t AND 7)*4))+2*c%(POINT((t AND &F8)*2,991-(t AND 7)*4)) AND &3F):NEXT,
   90OSCLI"SAVE SprDat "+STR$~space+" "+STR$~(space+&580)
  100:
  110DATA 0,1,4,5,16,17,20,21,64,65,68,69,80,81,84,85

 �2:� c%(15):�r=0�15:�c%(r):�
� space &1000:*RAM
*SLOAD SPRITES
(�r=0�10
2/� r>15 � �"SCHOOSE "+�~r � �"SCHOOSE 0"+�~r
<�&ED,0,960:�t=0�63
Fd?(space+128*r+t)=(c%(�(t � &F8)*2+8,1023-(t � 7)*4))+2*c%(�(t � &F8)*2,1023-(t � 7)*4)) � &3F):�
Pn�t=0�63:?(space+64+128*r+t)=(c%(�(t � &F8)*2+8,991-(t � 7)*4))+2*c%(�(t � &F8)*2,991-(t � 7)*4)) � &3F):�,
Z.�"SAVE SprDat "+�~space+" "+�~(space+&580)
d:
n1� 0,1,4,5,16,17,20,21,64,65,68,69,80,81,84,85
�
00000000  0d 00 0a 20 eb 32 3a de  20 63 25 28 31 35 29 3a  |... .2:. c%(15):|
00000010  e3 72 3d 30 b8 31 35 3a  f3 63 25 28 72 29 3a ed  |.r=0.15:.c%(r):.|
00000020  0d 00 14 16 de 20 73 70  61 63 65 20 26 31 30 30  |..... space &100|
00000030  30 3a 2a 52 41 4d 0d 00  1e 12 2a 53 4c 4f 41 44  |0:*RAM....*SLOAD|
00000040  20 53 50 52 49 54 45 53  0d 00 28 0b e3 72 3d 30  | SPRITES..(..r=0|
00000050  b8 31 30 0d 00 32 2f e7  20 72 3e 31 35 20 8c 20  |.10..2/. r>15 . |
00000060  ff 22 53 43 48 4f 4f 53  45 20 22 2b c3 7e 72 20  |."SCHOOSE "+.~r |
00000070  8b 20 ff 22 53 43 48 4f  4f 53 45 20 30 22 2b c3  |. ."SCHOOSE 0"+.|
00000080  7e 72 0d 00 3c 16 f0 26  45 44 2c 30 2c 39 36 30  |~r..<..&ED,0,960|
00000090  3a e3 74 3d 30 b8 36 33  0d 00 46 64 3f 28 73 70  |:.t=0.63..Fd?(sp|
000000a0  61 63 65 2b 31 32 38 2a  72 2b 74 29 3d 28 63 25  |ace+128*r+t)=(c%|
000000b0  28 b0 28 74 20 80 20 26  46 38 29 2a 32 2b 38 2c  |(.(t . &F8)*2+8,|
000000c0  31 30 32 33 2d 28 74 20  80 20 37 29 2a 34 29 29  |1023-(t . 7)*4))|
000000d0  2b 32 2a 63 25 28 b0 28  74 20 80 20 26 46 38 29  |+2*c%(.(t . &F8)|
000000e0  2a 32 2c 31 30 32 33 2d  28 74 20 80 20 37 29 2a  |*2,1023-(t . 7)*|
000000f0  34 29 29 20 80 20 26 33  46 29 3a ed 0d 00 50 6e  |4)) . &3F):...Pn|
00000100  e3 74 3d 30 b8 36 33 3a  3f 28 73 70 61 63 65 2b  |.t=0.63:?(space+|
00000110  36 34 2b 31 32 38 2a 72  2b 74 29 3d 28 63 25 28  |64+128*r+t)=(c%(|
00000120  b0 28 74 20 80 20 26 46  38 29 2a 32 2b 38 2c 39  |.(t . &F8)*2+8,9|
00000130  39 31 2d 28 74 20 80 20  37 29 2a 34 29 29 2b 32  |91-(t . 7)*4))+2|
00000140  2a 63 25 28 b0 28 74 20  80 20 26 46 38 29 2a 32  |*c%(.(t . &F8)*2|
00000150  2c 39 39 31 2d 28 74 20  80 20 37 29 2a 34 29 29  |,991-(t . 7)*4))|
00000160  20 80 20 26 33 46 29 3a  ed 2c 0d 00 5a 2e ff 22  | . &3F):.,..Z.."|
00000170  53 41 56 45 20 53 70 72  44 61 74 20 22 2b c3 7e  |SAVE SprDat "+.~|
00000180  73 70 61 63 65 2b 22 20  22 2b c3 7e 28 73 70 61  |space+" "+.~(spa|
00000190  63 65 2b 26 35 38 30 29  0d 00 64 05 3a 0d 00 6e  |ce+&580)..d.:..n|
000001a0  31 dc 20 30 2c 31 2c 34  2c 35 2c 31 36 2c 31 37  |1. 0,1,4,5,16,17|
000001b0  2c 32 30 2c 32 31 2c 36  34 2c 36 35 2c 36 38 2c  |,20,21,64,65,68,|
000001c0  36 39 2c 38 30 2c 38 31  2c 38 34 2c 38 35 0d ff  |69,80,81,84,85..|
000001d0