Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199609.adf » Extras » PDScheme/!BackSetUp/Running

PDScheme/!BackSetUp/Running

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/!BackSetUp/Running
Read OK:
File size: 0169 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM Check we're not already running
   20DIM block% 15
   30flag%=0
   51REPEAT
   52  SYS "TaskManager_EnumerateTasks",flag%,block%,16 TO flag%
   60  addr%=block%!4
   70  name$=""
   80  WHILE ?addr%>31
   90    name$+=CHR$(?addr%)
  100    addr%+=1
  110  ENDWHILE
  120  IF name$="BackDrops Setup" THEN *Error You can only have one copy of the Backdrops Setup program running at once
  140UNTILflag%<0
  150END

%� Check we're not already running
� block% 15
flag%=0
3�
4=  ș "TaskManager_EnumerateTasks",flag%,block%,16 � flag%
<  addr%=block%!4
F  name$=""
P  ȕ ?addr%>31
Z    name$+=�(?addr%)
d    addr%+=1
n  �
xr  � name$="BackDrops Setup" � *Error You can only have one copy of the Backdrops Setup program running at once
��flag%<0
��
�
00000000  0d 00 0a 25 f4 20 43 68  65 63 6b 20 77 65 27 72  |...%. Check we'r|
00000010  65 20 6e 6f 74 20 61 6c  72 65 61 64 79 20 72 75  |e not already ru|
00000020  6e 6e 69 6e 67 0d 00 14  0f de 20 62 6c 6f 63 6b  |nning..... block|
00000030  25 20 31 35 0d 00 1e 0b  66 6c 61 67 25 3d 30 0d  |% 15....flag%=0.|
00000040  00 33 05 f5 0d 00 34 3d  20 20 c8 99 20 22 54 61  |.3....4=  .. "Ta|
00000050  73 6b 4d 61 6e 61 67 65  72 5f 45 6e 75 6d 65 72  |skManager_Enumer|
00000060  61 74 65 54 61 73 6b 73  22 2c 66 6c 61 67 25 2c  |ateTasks",flag%,|
00000070  62 6c 6f 63 6b 25 2c 31  36 20 b8 20 66 6c 61 67  |block%,16 . flag|
00000080  25 0d 00 3c 14 20 20 61  64 64 72 25 3d 62 6c 6f  |%..<.  addr%=blo|
00000090  63 6b 25 21 34 0d 00 46  0e 20 20 6e 61 6d 65 24  |ck%!4..F.  name$|
000000a0  3d 22 22 0d 00 50 12 20  20 c8 95 20 3f 61 64 64  |=""..P.  .. ?add|
000000b0  72 25 3e 33 31 0d 00 5a  18 20 20 20 20 6e 61 6d  |r%>31..Z.    nam|
000000c0  65 24 2b 3d bd 28 3f 61  64 64 72 25 29 0d 00 64  |e$+=.(?addr%)..d|
000000d0  10 20 20 20 20 61 64 64  72 25 2b 3d 31 0d 00 6e  |.    addr%+=1..n|
000000e0  07 20 20 ce 0d 00 78 72  20 20 e7 20 6e 61 6d 65  |.  ...xr  . name|
000000f0  24 3d 22 42 61 63 6b 44  72 6f 70 73 20 53 65 74  |$="BackDrops Set|
00000100  75 70 22 20 8c 20 2a 45  72 72 6f 72 20 59 6f 75  |up" . *Error You|
00000110  20 63 61 6e 20 6f 6e 6c  79 20 68 61 76 65 20 6f  | can only have o|
00000120  6e 65 20 63 6f 70 79 20  6f 66 20 74 68 65 20 42  |ne copy of the B|
00000130  61 63 6b 64 72 6f 70 73  20 53 65 74 75 70 20 70  |ackdrops Setup p|
00000140  72 6f 67 72 61 6d 20 72  75 6e 6e 69 6e 67 20 61  |rogram running a|
00000150  74 20 6f 6e 63 65 0d 00  8c 0c fd 66 6c 61 67 25  |t once.....flag%|
00000160  3c 30 0d 00 96 05 e0 0d  ff                       |<0.......|
00000169