Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403_2.adf » Disk2Mar94 » !AWMar94/Goodies/yass/!Yass2/Shell/SHELL

!AWMar94/Goodies/yass/!Yass2/Shell/SHELL

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_ArchimedesWorld_199403_2.adf » Disk2Mar94
Filename: !AWMar94/Goodies/yass/!Yass2/Shell/SHELL
Read OK:
File size: 02C2 bytes
Load address: 0000
Exec address: 0000
File contents
    1
    2module$=""  :  REM Fill in module name here....
    3
    4ON ERROR REPORT:PRINT" at line ";ERL:END
    5
    6MODE 12:OFF
    7OSCLI("PRINT <Shell$Dir>.!Palette")
    8
    9SYS &35,-1,4 TO ,,F%:SYS &35,-1,11 TO ,,P%:max_x%=P%<<F%
   10SYS &35,-1,5 TO ,,F%:SYS &35,-1,12 TO ,,P%:max_y%=P%<<F%
   11SYS &35,-1,3 TO ,,max_c%
   12
   13TIME=0
   14
   15A%=EVAL("FN"+module$+"_start")
   16
   17REPEAT
   18
   19  now_going%=TIME
   20
   21UNTIL EVAL("FN"+module$+"_poll")
   22
   23A%=EVAL("FN"+module$+"_stop")
   24
   25END
   26
   27
   28REM ***** Supplied procedures (simulated versions) *****
   29
   30DEFFNmalloc(M%)
   31LOCAL A%
   32DIM A% M%
   33=A%
   34
   35DEFPROCfree(M%)
   36ENDPROC
   37
   38DEFPROCclearscreen(A%)
   39COLOUR 128+7:CLS:COLOUR0
   40ENDPROC
   41
   42DEFPROCset_colour(G%,C%)
   43GCOLG%,C%
   44ENDPROC
   45
   46
   47REM ***** Add your routines here *******
   48

1module$=""  :  � Fill in module name here....

� � �:�" at line ";�:�


� 12:�
#�("PRINT <Shell$Dir>.!Palette")

	8ș &35,-1,4 � ,,F%:ș &35,-1,11 � ,,P%:max_x%=P%<<F%

8ș &35,-1,5 � ,,F%:ș &35,-1,12 � ,,P%:max_y%=P%<<F%
ș &35,-1,3 � ,,max_c%


�=0

A%=�("FN"+module$+"_start")

�

  now_going%=�

� �("FN"+module$+"_poll")

A%=�("FN"+module$+"_stop")

�


:� ***** Supplied procedures (simulated versions) *****

ݤmalloc(M%)
� A%
 � A% M%
!=A%
"
#��free(M%)
$�
%
&��clearscreen(A%)
'� 128+7:�:�0
(�
)
*��set_colour(G%,C%)
+
�G%,C%
,�
-
.
/*� ***** Add your routines here *******
0
�
00000000  0d 00 01 04 0d 00 02 31  6d 6f 64 75 6c 65 24 3d  |.......1module$=|
00000010  22 22 20 20 3a 20 20 f4  20 46 69 6c 6c 20 69 6e  |""  :  . Fill in|
00000020  20 6d 6f 64 75 6c 65 20  6e 61 6d 65 20 68 65 72  | module name her|
00000030  65 2e 2e 2e 2e 0d 00 03  04 0d 00 04 1a ee 20 85  |e............. .|
00000040  20 f6 3a f1 22 20 61 74  20 6c 69 6e 65 20 22 3b  | .:." at line ";|
00000050  9e 3a e0 0d 00 05 04 0d  00 06 0a eb 20 31 32 3a  |.:.......... 12:|
00000060  87 0d 00 07 23 ff 28 22  50 52 49 4e 54 20 3c 53  |....#.("PRINT <S|
00000070  68 65 6c 6c 24 44 69 72  3e 2e 21 50 61 6c 65 74  |hell$Dir>.!Palet|
00000080  74 65 22 29 0d 00 08 04  0d 00 09 38 c8 99 20 26  |te").......8.. &|
00000090  33 35 2c 2d 31 2c 34 20  b8 20 2c 2c 46 25 3a c8  |35,-1,4 . ,,F%:.|
000000a0  99 20 26 33 35 2c 2d 31  2c 31 31 20 b8 20 2c 2c  |. &35,-1,11 . ,,|
000000b0  50 25 3a 6d 61 78 5f 78  25 3d 50 25 3c 3c 46 25  |P%:max_x%=P%<<F%|
000000c0  0d 00 0a 38 c8 99 20 26  33 35 2c 2d 31 2c 35 20  |...8.. &35,-1,5 |
000000d0  b8 20 2c 2c 46 25 3a c8  99 20 26 33 35 2c 2d 31  |. ,,F%:.. &35,-1|
000000e0  2c 31 32 20 b8 20 2c 2c  50 25 3a 6d 61 78 5f 79  |,12 . ,,P%:max_y|
000000f0  25 3d 50 25 3c 3c 46 25  0d 00 0b 1a c8 99 20 26  |%=P%<<F%...... &|
00000100  33 35 2c 2d 31 2c 33 20  b8 20 2c 2c 6d 61 78 5f  |35,-1,3 . ,,max_|
00000110  63 25 0d 00 0c 04 0d 00  0d 07 d1 3d 30 0d 00 0e  |c%.........=0...|
00000120  04 0d 00 0f 1f 41 25 3d  a0 28 22 46 4e 22 2b 6d  |.....A%=.("FN"+m|
00000130  6f 64 75 6c 65 24 2b 22  5f 73 74 61 72 74 22 29  |odule$+"_start")|
00000140  0d 00 10 04 0d 00 11 05  f5 0d 00 12 04 0d 00 13  |................|
00000150  12 20 20 6e 6f 77 5f 67  6f 69 6e 67 25 3d 91 0d  |.  now_going%=..|
00000160  00 14 04 0d 00 15 1d fd  20 a0 28 22 46 4e 22 2b  |........ .("FN"+|
00000170  6d 6f 64 75 6c 65 24 2b  22 5f 70 6f 6c 6c 22 29  |module$+"_poll")|
00000180  0d 00 16 04 0d 00 17 1e  41 25 3d a0 28 22 46 4e  |........A%=.("FN|
00000190  22 2b 6d 6f 64 75 6c 65  24 2b 22 5f 73 74 6f 70  |"+module$+"_stop|
000001a0  22 29 0d 00 18 04 0d 00  19 05 e0 0d 00 1a 04 0d  |")..............|
000001b0  00 1b 04 0d 00 1c 3a f4  20 2a 2a 2a 2a 2a 20 53  |......:. ***** S|
000001c0  75 70 70 6c 69 65 64 20  70 72 6f 63 65 64 75 72  |upplied procedur|
000001d0  65 73 20 28 73 69 6d 75  6c 61 74 65 64 20 76 65  |es (simulated ve|
000001e0  72 73 69 6f 6e 73 29 20  2a 2a 2a 2a 2a 0d 00 1d  |rsions) *****...|
000001f0  04 0d 00 1e 10 dd a4 6d  61 6c 6c 6f 63 28 4d 25  |.......malloc(M%|
00000200  29 0d 00 1f 08 ea 20 41  25 0d 00 20 0b de 20 41  |)..... A%.. .. A|
00000210  25 20 4d 25 0d 00 21 07  3d 41 25 0d 00 22 04 0d  |% M%..!.=A%.."..|
00000220  00 23 0e dd f2 66 72 65  65 28 4d 25 29 0d 00 24  |.#...free(M%)..$|
00000230  05 e1 0d 00 25 04 0d 00  26 15 dd f2 63 6c 65 61  |....%...&...clea|
00000240  72 73 63 72 65 65 6e 28  41 25 29 0d 00 27 10 fb  |rscreen(A%)..'..|
00000250  20 31 32 38 2b 37 3a db  3a fb 30 0d 00 28 05 e1  | 128+7:.:.0..(..|
00000260  0d 00 29 04 0d 00 2a 17  dd f2 73 65 74 5f 63 6f  |..)...*...set_co|
00000270  6c 6f 75 72 28 47 25 2c  43 25 29 0d 00 2b 0a e6  |lour(G%,C%)..+..|
00000280  47 25 2c 43 25 0d 00 2c  05 e1 0d 00 2d 04 0d 00  |G%,C%..,....-...|
00000290  2e 04 0d 00 2f 2a f4 20  2a 2a 2a 2a 2a 20 41 64  |..../*. ***** Ad|
000002a0  64 20 79 6f 75 72 20 72  6f 75 74 69 6e 65 73 20  |d your routines |
000002b0  68 65 72 65 20 2a 2a 2a  2a 2a 2a 2a 0d 00 30 04  |here *******..0.|
000002c0  0d ff                                             |..|
000002c2