Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199609.adf » Extras » PDScheme/!BackDrops/ReMakeData

PDScheme/!BackDrops/ReMakeData

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_199609.adf » Extras
Filename: PDScheme/!BackDrops/ReMakeData
Read OK:
File size: 043E bytes
Load address: 0000
Exec address: 0000
File contents
   10REM ReMakeData program for !BackDrops
   20REM LEN Andrew J Booker
   30:
   40
   50
   60REM Check we're not already running
   70DIM block% 15
   80flag%=0
   90REPEAT
  100  SYS "TaskManager_EnumerateTasks",flag%,block%,16 TO flag%
  110  addr%=block%!4
  120  name$=""
  130  WHILE ?addr%>31
  140    name$+=CHR$(?addr%)
  150    addr%+=1
  160  ENDWHILE
  170  IF name$="BackDrops Setup" THEN *Error You cannot run ReMakeData while the BackDrops SetUp program is running
  180UNTILflag%<0
  190
  200
  210:
  220DIM data 950,buffer 255
  230FOR N=0 TO 944 STEP 4:data!N=0:NEXT
  240$(data+1)="(None)":data?7=10:data?12=0
  250:
  260count=0:r4=0
  270WHILE r4<>-1
  280  SYS "OS_GBPB",9,"BackDrops:Sprites",buffer,1,r4,255,"*" TO ,,,no,r4
  290  IF no=1 THEN
  300    count+=1
  310    PROCwritectrlterm(buffer,data+count*12+1)
  320    ?(data+count*12+12)=1
  330  ENDIF
  340  IF count=77 THENr4=-1
  350ENDWHILE
  360IF count<77 THEN
  370  FOR loop=count+1 TO 77
  380    ?(data+loop*12+1)=10
  390  NEXT
  400ENDIF
  410?data=count
  420data?937=255
  430OSCLI "Save BackDrops:Data "+STR$~data+" +3AA"
  440OSCLI "SetType BackDrops:Data FFD"
  450END
  460:
  470DEFPROCwritectrlterm(from,to)
  480REPEAT
  490  ?to=?from
  500  to+=1:from+=1
  510UNTIL (?(to-1))<32
  520?(to-1)=10
  530ENDPROC

'� ReMakeData program for !BackDrops
� � Andrew J Booker
:
(
2
<%� Check we're not already running
F� block% 15
Pflag%=0
Z�
d=  ș "TaskManager_EnumerateTasks",flag%,block%,16 � flag%
n  addr%=block%!4
x  name$=""
�  ȕ ?addr%>31
�    name$+=�(?addr%)
�    addr%+=1
�  �
�o  � name$="BackDrops Setup" � *Error You cannot run ReMakeData while the BackDrops SetUp program is running
��flag%<0
�
�
�:
�� data 950,buffer 255
�� N=0 � 944 � 4:data!N=0:�
�*$(data+1)="(None)":data?7=10:data?12=0
�:
count=0:r4=0

ȕ r4<>-1
G  ș "OS_GBPB",9,"BackDrops:Sprites",buffer,1,r4,255,"*" � ,,,no,r4
"  � no=1 �
,    count+=1
6.    �writectrlterm(buffer,data+count*12+1)
@    ?(data+count*12+12)=1
J  �
T  � count=77 �r4=-1
^�
h� count<77 �
r  � loop=count+1 � 77
|    ?(data+loop*12+1)=10
�  �
��
�?data=count
�data?937=255
�+� "Save BackDrops:Data "+�~data+" +3AA"
�"� "SetType BackDrops:Data FFD"
��
�:
���writectrlterm(from,to)
��
�  ?to=?from
�  to+=1:from+=1
�� (?(to-1))<32
?(to-1)=10
�
�
00000000  0d 00 0a 27 f4 20 52 65  4d 61 6b 65 44 61 74 61  |...'. ReMakeData|
00000010  20 70 72 6f 67 72 61 6d  20 66 6f 72 20 21 42 61  | program for !Ba|
00000020  63 6b 44 72 6f 70 73 0d  00 14 17 f4 20 a9 20 41  |ckDrops..... . A|
00000030  6e 64 72 65 77 20 4a 20  42 6f 6f 6b 65 72 0d 00  |ndrew J Booker..|
00000040  1e 05 3a 0d 00 28 04 0d  00 32 04 0d 00 3c 25 f4  |..:..(...2...<%.|
00000050  20 43 68 65 63 6b 20 77  65 27 72 65 20 6e 6f 74  | Check we're not|
00000060  20 61 6c 72 65 61 64 79  20 72 75 6e 6e 69 6e 67  | already running|
00000070  0d 00 46 0f de 20 62 6c  6f 63 6b 25 20 31 35 0d  |..F.. block% 15.|
00000080  00 50 0b 66 6c 61 67 25  3d 30 0d 00 5a 05 f5 0d  |.P.flag%=0..Z...|
00000090  00 64 3d 20 20 c8 99 20  22 54 61 73 6b 4d 61 6e  |.d=  .. "TaskMan|
000000a0  61 67 65 72 5f 45 6e 75  6d 65 72 61 74 65 54 61  |ager_EnumerateTa|
000000b0  73 6b 73 22 2c 66 6c 61  67 25 2c 62 6c 6f 63 6b  |sks",flag%,block|
000000c0  25 2c 31 36 20 b8 20 66  6c 61 67 25 0d 00 6e 14  |%,16 . flag%..n.|
000000d0  20 20 61 64 64 72 25 3d  62 6c 6f 63 6b 25 21 34  |  addr%=block%!4|
000000e0  0d 00 78 0e 20 20 6e 61  6d 65 24 3d 22 22 0d 00  |..x.  name$=""..|
000000f0  82 12 20 20 c8 95 20 3f  61 64 64 72 25 3e 33 31  |..  .. ?addr%>31|
00000100  0d 00 8c 18 20 20 20 20  6e 61 6d 65 24 2b 3d bd  |....    name$+=.|
00000110  28 3f 61 64 64 72 25 29  0d 00 96 10 20 20 20 20  |(?addr%)....    |
00000120  61 64 64 72 25 2b 3d 31  0d 00 a0 07 20 20 ce 0d  |addr%+=1....  ..|
00000130  00 aa 6f 20 20 e7 20 6e  61 6d 65 24 3d 22 42 61  |..o  . name$="Ba|
00000140  63 6b 44 72 6f 70 73 20  53 65 74 75 70 22 20 8c  |ckDrops Setup" .|
00000150  20 2a 45 72 72 6f 72 20  59 6f 75 20 63 61 6e 6e  | *Error You cann|
00000160  6f 74 20 72 75 6e 20 52  65 4d 61 6b 65 44 61 74  |ot run ReMakeDat|
00000170  61 20 77 68 69 6c 65 20  74 68 65 20 42 61 63 6b  |a while the Back|
00000180  44 72 6f 70 73 20 53 65  74 55 70 20 70 72 6f 67  |Drops SetUp prog|
00000190  72 61 6d 20 69 73 20 72  75 6e 6e 69 6e 67 0d 00  |ram is running..|
000001a0  b4 0c fd 66 6c 61 67 25  3c 30 0d 00 be 04 0d 00  |...flag%<0......|
000001b0  c8 04 0d 00 d2 05 3a 0d  00 dc 19 de 20 64 61 74  |......:..... dat|
000001c0  61 20 39 35 30 2c 62 75  66 66 65 72 20 32 35 35  |a 950,buffer 255|
000001d0  0d 00 e6 1e e3 20 4e 3d  30 20 b8 20 39 34 34 20  |..... N=0 . 944 |
000001e0  88 20 34 3a 64 61 74 61  21 4e 3d 30 3a ed 0d 00  |. 4:data!N=0:...|
000001f0  f0 2a 24 28 64 61 74 61  2b 31 29 3d 22 28 4e 6f  |.*$(data+1)="(No|
00000200  6e 65 29 22 3a 64 61 74  61 3f 37 3d 31 30 3a 64  |ne)":data?7=10:d|
00000210  61 74 61 3f 31 32 3d 30  0d 00 fa 05 3a 0d 01 04  |ata?12=0....:...|
00000220  10 63 6f 75 6e 74 3d 30  3a 72 34 3d 30 0d 01 0e  |.count=0:r4=0...|
00000230  0d c8 95 20 72 34 3c 3e  2d 31 0d 01 18 47 20 20  |... r4<>-1...G  |
00000240  c8 99 20 22 4f 53 5f 47  42 50 42 22 2c 39 2c 22  |.. "OS_GBPB",9,"|
00000250  42 61 63 6b 44 72 6f 70  73 3a 53 70 72 69 74 65  |BackDrops:Sprite|
00000260  73 22 2c 62 75 66 66 65  72 2c 31 2c 72 34 2c 32  |s",buffer,1,r4,2|
00000270  35 35 2c 22 2a 22 20 b8  20 2c 2c 2c 6e 6f 2c 72  |55,"*" . ,,,no,r|
00000280  34 0d 01 22 0e 20 20 e7  20 6e 6f 3d 31 20 8c 0d  |4..".  . no=1 ..|
00000290  01 2c 10 20 20 20 20 63  6f 75 6e 74 2b 3d 31 0d  |.,.    count+=1.|
000002a0  01 36 2e 20 20 20 20 f2  77 72 69 74 65 63 74 72  |.6.    .writectr|
000002b0  6c 74 65 72 6d 28 62 75  66 66 65 72 2c 64 61 74  |lterm(buffer,dat|
000002c0  61 2b 63 6f 75 6e 74 2a  31 32 2b 31 29 0d 01 40  |a+count*12+1)..@|
000002d0  1d 20 20 20 20 3f 28 64  61 74 61 2b 63 6f 75 6e  |.    ?(data+coun|
000002e0  74 2a 31 32 2b 31 32 29  3d 31 0d 01 4a 07 20 20  |t*12+12)=1..J.  |
000002f0  cd 0d 01 54 17 20 20 e7  20 63 6f 75 6e 74 3d 37  |...T.  . count=7|
00000300  37 20 8c 72 34 3d 2d 31  0d 01 5e 05 ce 0d 01 68  |7 .r4=-1..^....h|
00000310  10 e7 20 63 6f 75 6e 74  3c 37 37 20 8c 0d 01 72  |.. count<77 ...r|
00000320  19 20 20 e3 20 6c 6f 6f  70 3d 63 6f 75 6e 74 2b  |.  . loop=count+|
00000330  31 20 b8 20 37 37 0d 01  7c 1c 20 20 20 20 3f 28  |1 . 77..|.    ?(|
00000340  64 61 74 61 2b 6c 6f 6f  70 2a 31 32 2b 31 29 3d  |data+loop*12+1)=|
00000350  31 30 0d 01 86 07 20 20  ed 0d 01 90 05 cd 0d 01  |10....  ........|
00000360  9a 0f 3f 64 61 74 61 3d  63 6f 75 6e 74 0d 01 a4  |..?data=count...|
00000370  10 64 61 74 61 3f 39 33  37 3d 32 35 35 0d 01 ae  |.data?937=255...|
00000380  2b ff 20 22 53 61 76 65  20 42 61 63 6b 44 72 6f  |+. "Save BackDro|
00000390  70 73 3a 44 61 74 61 20  22 2b c3 7e 64 61 74 61  |ps:Data "+.~data|
000003a0  2b 22 20 2b 33 41 41 22  0d 01 b8 22 ff 20 22 53  |+" +3AA"...". "S|
000003b0  65 74 54 79 70 65 20 42  61 63 6b 44 72 6f 70 73  |etType BackDrops|
000003c0  3a 44 61 74 61 20 46 46  44 22 0d 01 c2 05 e0 0d  |:Data FFD"......|
000003d0  01 cc 05 3a 0d 01 d6 1c  dd f2 77 72 69 74 65 63  |...:......writec|
000003e0  74 72 6c 74 65 72 6d 28  66 72 6f 6d 2c 74 6f 29  |trlterm(from,to)|
000003f0  0d 01 e0 05 f5 0d 01 ea  0f 20 20 3f 74 6f 3d 3f  |.........  ?to=?|
00000400  66 72 6f 6d 0d 01 f4 13  20 20 74 6f 2b 3d 31 3a  |from....  to+=1:|
00000410  66 72 6f 6d 2b 3d 31 0d  01 fe 12 fd 20 28 3f 28  |from+=1..... (?(|
00000420  74 6f 2d 31 29 29 3c 33  32 0d 02 08 0e 3f 28 74  |to-1))<32....?(t|
00000430  6f 2d 31 29 3d 31 30 0d  02 12 05 e1 0d ff        |o-1)=10.......|
0000043e