Home » Archimedes archive » Acorn User » AU 1998-09.adf » Features » DesktopPD/ExtraBar/!ExLibrary/!RunImage

DesktopPD/ExtraBar/!ExLibrary/!RunImage

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 » Archimedes archive » Acorn User » AU 1998-09.adf » Features
Filename: DesktopPD/ExtraBar/!ExLibrary/!RunImage
Read OK:
File size: 057B bytes
Load address: 0000
Exec address: 0000
File contents
    1DIM blk% 256:$(blk%) = "TASK":DIM temp_blk% 512 
    2SYS "Wimp_Initialise",200,!blk%,"ExLibrary: autoload" TO ,handle%
    3SYS "Hourglass_On"
    4dir$ = FNsystem_variable("ExtraBar_Utils$Path")
    5PROCautoload_commands(LEFT$(dir$))
    6SYS "Hourglass_Off"      
    7END
    8
    9DEF PROCautoload_commands(dir$)
   10LOCAL item%,f%,flags%
   11SYS "XOS_File",23,dir$ TO f%;flags%
   12IF f% > 1 THEN
   13  WHILE item% <> -1
   14    SYS "OS_GBPB",12,dir$,blk%,1,item%,256,0 TO ,,,read%,item%
   15    IF (read% > 0) THEN
   16      file$ = FNget_string(blk%+24,255)
   17      IF file$ = "" THEN PRINT "**"
   18
   19      CASE blk%!16 OF
   20        WHEN 1  :
   21          IF LEFT$(file$,1) = "!" THEN SYS "XWimp_StartTask","Run "+dir$+"."+file$
   22        WHEN 2,3:
   23          IF LEFT$(file$,1) = "!" THEN
   24            SYS "XWimp_StartTask","Filer_Boot "+dir$+"."+file$
   25          ELSE
   26            PROCautoload_commands(dir$+"."+file$)
   27          ENDIF
   28      ENDCASE
   29    ENDIF
   30  ENDWHILE
   31ENDIF
   32ENDPROC
   33
   34DEF FNget_string(pointer%,length%)
   35LOCAL temp$
   36IF length%=0 THEN length%=255
   37FOR pointer%=pointer% TO pointer%+length%-1
   38IF ?pointer%<32 THEN
   39pointer%=pointer%+length%
   40ELSE
   41temp$+=CHR$(?pointer%)
   42ENDIF
   43NEXT
   44=temp$
   45
   46DEF FNsystem_variable(sys_var$)
   47LOCAL length%,text$
   48SYS"XOS_ReadVarVal",sys_var$+CHR$(0),temp_blk%,-1 TO ,,length%
   49IF length% <> 0 THEN
   50  SYS"XOS_ReadVarVal",sys_var$+CHR$(0),temp_blk%,255,,3 TO ,,length%
   51  ?(temp_blk%+length%)=13
   52  text$ = $temp_blk%
   53ELSE
   54  text$ = ""
   55ENDIF
   56= text$
0� blk% 256:$(blk%) = "TASK":� temp_blk% 512 
Cș "Wimp_Initialise",200,!blk%,"ExLibrary: autoload" � ,handle%
ș "Hourglass_On"
2dir$ = �system_variable("ExtraBar_Utils$Path")
�autoload_commands(�dir$))
ș "Hourglass_Off"      
�

	� �autoload_commands(dir$)

� item%,f%,flags%
%ș "XOS_File",23,dir$ � f%;flags%
� f% > 1 �

  ȕ item% <> -1
@    ș "OS_GBPB",12,dir$,blk%,1,item%,256,0 � ,,,read%,item%
    � (read% > 0) �
*      file$ = �get_string(blk%+24,255)
      � file$ = "" � � "**"

      Ȏ blk%!16 �
        � 1  :
L          � �file$,1) = "!" � ș "XWimp_StartTask","Run "+dir$+"."+file$
        � 2,3:
!          � �file$,1) = "!" �
A            ș "XWimp_StartTask","Filer_Boot "+dir$+"."+file$
          �
2            �autoload_commands(dir$+"."+file$)
          �
      �
	    �
  �
�
 �
!
"#� �get_string(pointer%,length%)
#� temp$
$� length%=0 � length%=255
%,� pointer%=pointer% � pointer%+length%-1
&� ?pointer%<32 �
'pointer%=pointer%+length%
(�
)temp$+=�(?pointer%)
*�
+�
,
=temp$
-
. � �system_variable(sys_var$)
/� length%,text$
0=ș"XOS_ReadVarVal",sys_var$+�(0),temp_blk%,-1 � ,,length%
1� length% <> 0 �
2C  ș"XOS_ReadVarVal",sys_var$+�(0),temp_blk%,255,,3 � ,,length%
3  ?(temp_blk%+length%)=13
4  text$ = $temp_blk%
5�
6  text$ = ""
7�
8= text$
�
00000000  0d 00 01 30 de 20 62 6c  6b 25 20 32 35 36 3a 24  |...0. blk% 256:$|
00000010  28 62 6c 6b 25 29 20 3d  20 22 54 41 53 4b 22 3a  |(blk%) = "TASK":|
00000020  de 20 74 65 6d 70 5f 62  6c 6b 25 20 35 31 32 20  |. temp_blk% 512 |
00000030  0d 00 02 43 c8 99 20 22  57 69 6d 70 5f 49 6e 69  |...C.. "Wimp_Ini|
00000040  74 69 61 6c 69 73 65 22  2c 32 30 30 2c 21 62 6c  |tialise",200,!bl|
00000050  6b 25 2c 22 45 78 4c 69  62 72 61 72 79 3a 20 61  |k%,"ExLibrary: a|
00000060  75 74 6f 6c 6f 61 64 22  20 b8 20 2c 68 61 6e 64  |utoload" . ,hand|
00000070  6c 65 25 0d 00 03 15 c8  99 20 22 48 6f 75 72 67  |le%...... "Hourg|
00000080  6c 61 73 73 5f 4f 6e 22  0d 00 04 32 64 69 72 24  |lass_On"...2dir$|
00000090  20 3d 20 a4 73 79 73 74  65 6d 5f 76 61 72 69 61  | = .system_varia|
000000a0  62 6c 65 28 22 45 78 74  72 61 42 61 72 5f 55 74  |ble("ExtraBar_Ut|
000000b0  69 6c 73 24 50 61 74 68  22 29 0d 00 05 1e f2 61  |ils$Path").....a|
000000c0  75 74 6f 6c 6f 61 64 5f  63 6f 6d 6d 61 6e 64 73  |utoload_commands|
000000d0  28 c0 64 69 72 24 29 29  0d 00 06 1c c8 99 20 22  |(.dir$))...... "|
000000e0  48 6f 75 72 67 6c 61 73  73 5f 4f 66 66 22 20 20  |Hourglass_Off"  |
000000f0  20 20 20 20 0d 00 07 05  e0 0d 00 08 04 0d 00 09  |    ............|
00000100  1e dd 20 f2 61 75 74 6f  6c 6f 61 64 5f 63 6f 6d  |.. .autoload_com|
00000110  6d 61 6e 64 73 28 64 69  72 24 29 0d 00 0a 15 ea  |mands(dir$).....|
00000120  20 69 74 65 6d 25 2c 66  25 2c 66 6c 61 67 73 25  | item%,f%,flags%|
00000130  0d 00 0b 25 c8 99 20 22  58 4f 53 5f 46 69 6c 65  |...%.. "XOS_File|
00000140  22 2c 32 33 2c 64 69 72  24 20 b8 20 66 25 3b 66  |",23,dir$ . f%;f|
00000150  6c 61 67 73 25 0d 00 0c  0e e7 20 66 25 20 3e 20  |lags%..... f% > |
00000160  31 20 8c 0d 00 0d 14 20  20 c8 95 20 69 74 65 6d  |1 .....  .. item|
00000170  25 20 3c 3e 20 2d 31 0d  00 0e 40 20 20 20 20 c8  |% <> -1...@    .|
00000180  99 20 22 4f 53 5f 47 42  50 42 22 2c 31 32 2c 64  |. "OS_GBPB",12,d|
00000190  69 72 24 2c 62 6c 6b 25  2c 31 2c 69 74 65 6d 25  |ir$,blk%,1,item%|
000001a0  2c 32 35 36 2c 30 20 b8  20 2c 2c 2c 72 65 61 64  |,256,0 . ,,,read|
000001b0  25 2c 69 74 65 6d 25 0d  00 0f 17 20 20 20 20 e7  |%,item%....    .|
000001c0  20 28 72 65 61 64 25 20  3e 20 30 29 20 8c 0d 00  | (read% > 0) ...|
000001d0  10 2a 20 20 20 20 20 20  66 69 6c 65 24 20 3d 20  |.*      file$ = |
000001e0  a4 67 65 74 5f 73 74 72  69 6e 67 28 62 6c 6b 25  |.get_string(blk%|
000001f0  2b 32 34 2c 32 35 35 29  0d 00 11 1f 20 20 20 20  |+24,255)....    |
00000200  20 20 e7 20 66 69 6c 65  24 20 3d 20 22 22 20 8c  |  . file$ = "" .|
00000210  20 f1 20 22 2a 2a 22 0d  00 12 04 0d 00 13 16 20  | . "**"........ |
00000220  20 20 20 20 20 c8 8e 20  62 6c 6b 25 21 31 36 20  |     .. blk%!16 |
00000230  ca 0d 00 14 12 20 20 20  20 20 20 20 20 c9 20 31  |.....        . 1|
00000240  20 20 3a 0d 00 15 4c 20  20 20 20 20 20 20 20 20  |  :...L         |
00000250  20 e7 20 c0 66 69 6c 65  24 2c 31 29 20 3d 20 22  | . .file$,1) = "|
00000260  21 22 20 8c 20 c8 99 20  22 58 57 69 6d 70 5f 53  |!" . .. "XWimp_S|
00000270  74 61 72 74 54 61 73 6b  22 2c 22 52 75 6e 20 22  |tartTask","Run "|
00000280  2b 64 69 72 24 2b 22 2e  22 2b 66 69 6c 65 24 0d  |+dir$+"."+file$.|
00000290  00 16 12 20 20 20 20 20  20 20 20 c9 20 32 2c 33  |...        . 2,3|
000002a0  3a 0d 00 17 21 20 20 20  20 20 20 20 20 20 20 e7  |:...!          .|
000002b0  20 c0 66 69 6c 65 24 2c  31 29 20 3d 20 22 21 22  | .file$,1) = "!"|
000002c0  20 8c 0d 00 18 41 20 20  20 20 20 20 20 20 20 20  | ....A          |
000002d0  20 20 c8 99 20 22 58 57  69 6d 70 5f 53 74 61 72  |  .. "XWimp_Star|
000002e0  74 54 61 73 6b 22 2c 22  46 69 6c 65 72 5f 42 6f  |tTask","Filer_Bo|
000002f0  6f 74 20 22 2b 64 69 72  24 2b 22 2e 22 2b 66 69  |ot "+dir$+"."+fi|
00000300  6c 65 24 0d 00 19 0f 20  20 20 20 20 20 20 20 20  |le$....         |
00000310  20 cc 0d 00 1a 32 20 20  20 20 20 20 20 20 20 20  | ....2          |
00000320  20 20 f2 61 75 74 6f 6c  6f 61 64 5f 63 6f 6d 6d  |  .autoload_comm|
00000330  61 6e 64 73 28 64 69 72  24 2b 22 2e 22 2b 66 69  |ands(dir$+"."+fi|
00000340  6c 65 24 29 0d 00 1b 0f  20 20 20 20 20 20 20 20  |le$)....        |
00000350  20 20 cd 0d 00 1c 0b 20  20 20 20 20 20 cb 0d 00  |  .....      ...|
00000360  1d 09 20 20 20 20 cd 0d  00 1e 07 20 20 ce 0d 00  |..    .....  ...|
00000370  1f 05 cd 0d 00 20 05 e1  0d 00 21 04 0d 00 22 23  |..... ....!..."#|
00000380  dd 20 a4 67 65 74 5f 73  74 72 69 6e 67 28 70 6f  |. .get_string(po|
00000390  69 6e 74 65 72 25 2c 6c  65 6e 67 74 68 25 29 0d  |inter%,length%).|
000003a0  00 23 0b ea 20 74 65 6d  70 24 0d 00 24 1d e7 20  |.#.. temp$..$.. |
000003b0  6c 65 6e 67 74 68 25 3d  30 20 8c 20 6c 65 6e 67  |length%=0 . leng|
000003c0  74 68 25 3d 32 35 35 0d  00 25 2c e3 20 70 6f 69  |th%=255..%,. poi|
000003d0  6e 74 65 72 25 3d 70 6f  69 6e 74 65 72 25 20 b8  |nter%=pointer% .|
000003e0  20 70 6f 69 6e 74 65 72  25 2b 6c 65 6e 67 74 68  | pointer%+length|
000003f0  25 2d 31 0d 00 26 14 e7  20 3f 70 6f 69 6e 74 65  |%-1..&.. ?pointe|
00000400  72 25 3c 33 32 20 8c 0d  00 27 1d 70 6f 69 6e 74  |r%<32 ...'.point|
00000410  65 72 25 3d 70 6f 69 6e  74 65 72 25 2b 6c 65 6e  |er%=pointer%+len|
00000420  67 74 68 25 0d 00 28 05  cc 0d 00 29 17 74 65 6d  |gth%..(....).tem|
00000430  70 24 2b 3d bd 28 3f 70  6f 69 6e 74 65 72 25 29  |p$+=.(?pointer%)|
00000440  0d 00 2a 05 cd 0d 00 2b  05 ed 0d 00 2c 0a 3d 74  |..*....+....,.=t|
00000450  65 6d 70 24 0d 00 2d 04  0d 00 2e 20 dd 20 a4 73  |emp$..-.... . .s|
00000460  79 73 74 65 6d 5f 76 61  72 69 61 62 6c 65 28 73  |ystem_variable(s|
00000470  79 73 5f 76 61 72 24 29  0d 00 2f 13 ea 20 6c 65  |ys_var$)../.. le|
00000480  6e 67 74 68 25 2c 74 65  78 74 24 0d 00 30 3d c8  |ngth%,text$..0=.|
00000490  99 22 58 4f 53 5f 52 65  61 64 56 61 72 56 61 6c  |."XOS_ReadVarVal|
000004a0  22 2c 73 79 73 5f 76 61  72 24 2b bd 28 30 29 2c  |",sys_var$+.(0),|
000004b0  74 65 6d 70 5f 62 6c 6b  25 2c 2d 31 20 b8 20 2c  |temp_blk%,-1 . ,|
000004c0  2c 6c 65 6e 67 74 68 25  0d 00 31 14 e7 20 6c 65  |,length%..1.. le|
000004d0  6e 67 74 68 25 20 3c 3e  20 30 20 8c 0d 00 32 43  |ngth% <> 0 ...2C|
000004e0  20 20 c8 99 22 58 4f 53  5f 52 65 61 64 56 61 72  |  .."XOS_ReadVar|
000004f0  56 61 6c 22 2c 73 79 73  5f 76 61 72 24 2b bd 28  |Val",sys_var$+.(|
00000500  30 29 2c 74 65 6d 70 5f  62 6c 6b 25 2c 32 35 35  |0),temp_blk%,255|
00000510  2c 2c 33 20 b8 20 2c 2c  6c 65 6e 67 74 68 25 0d  |,,3 . ,,length%.|
00000520  00 33 1d 20 20 3f 28 74  65 6d 70 5f 62 6c 6b 25  |.3.  ?(temp_blk%|
00000530  2b 6c 65 6e 67 74 68 25  29 3d 31 33 0d 00 34 18  |+length%)=13..4.|
00000540  20 20 74 65 78 74 24 20  3d 20 24 74 65 6d 70 5f  |  text$ = $temp_|
00000550  62 6c 6b 25 0d 00 35 05  cc 0d 00 36 10 20 20 74  |blk%..5....6.  t|
00000560  65 78 74 24 20 3d 20 22  22 0d 00 37 05 cd 0d 00  |ext$ = ""..7....|
00000570  38 0b 3d 20 74 65 78 74  24 0d ff                 |8.= text$..|
0000057b