Home » Archimedes archive » Acorn User » AU 1994-04.adf » !StarInfo_StarInfo » Bright/!Cassette/Resources/SWI_Text

Bright/!Cassette/Resources/SWI_Text

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 1994-04.adf » !StarInfo_StarInfo
Filename: Bright/!Cassette/Resources/SWI_Text
Read OK:
File size: 0153 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM Temp
   20REM Get a SWI Name from a SWI Number
   30:
   40ON ERROR PRINTREPORT$;" at line ";ERL:END
   50
   60INPUT"Please enter the number of the SWI you require :";SWI_Number
   70
   80DIM Buffer% 255
   90SYS"OS_SWINumberToString",SWI_Number,Buffer%,255 TO ,,Length%
  100PRINT"Length of string is ";STR$(Length%)
  110FOR Loop%=Buffer% TO Buffer%+Length%
  120   PRINTCHR$(?Loop%);
  130NEXT
  140END


� Temp
&� Get a SWI Name from a SWI Number
:
(� � �$;" at line ";�:�
2
<B�"Please enter the number of the SWI you require :";SWI_Number
F
P� Buffer% 255
Z?ș"OS_SWINumberToString",SWI_Number,Buffer%,255 � ,,Length%
d&�"Length of string is ";�(Length%)
n%� Loop%=Buffer% � Buffer%+Length%
x   �(?Loop%);
��
��
�
00000000  0d 00 0a 0a f4 20 54 65  6d 70 0d 00 14 26 f4 20  |..... Temp...&. |
00000010  47 65 74 20 61 20 53 57  49 20 4e 61 6d 65 20 66  |Get a SWI Name f|
00000020  72 6f 6d 20 61 20 53 57  49 20 4e 75 6d 62 65 72  |rom a SWI Number|
00000030  0d 00 1e 05 3a 0d 00 28  1b ee 20 85 20 f1 f6 24  |....:..(.. . ..$|
00000040  3b 22 20 61 74 20 6c 69  6e 65 20 22 3b 9e 3a e0  |;" at line ";.:.|
00000050  0d 00 32 04 0d 00 3c 42  e8 22 50 6c 65 61 73 65  |..2...<B."Please|
00000060  20 65 6e 74 65 72 20 74  68 65 20 6e 75 6d 62 65  | enter the numbe|
00000070  72 20 6f 66 20 74 68 65  20 53 57 49 20 79 6f 75  |r of the SWI you|
00000080  20 72 65 71 75 69 72 65  20 3a 22 3b 53 57 49 5f  | require :";SWI_|
00000090  4e 75 6d 62 65 72 0d 00  46 04 0d 00 50 11 de 20  |Number..F...P.. |
000000a0  42 75 66 66 65 72 25 20  32 35 35 0d 00 5a 3f c8  |Buffer% 255..Z?.|
000000b0  99 22 4f 53 5f 53 57 49  4e 75 6d 62 65 72 54 6f  |."OS_SWINumberTo|
000000c0  53 74 72 69 6e 67 22 2c  53 57 49 5f 4e 75 6d 62  |String",SWI_Numb|
000000d0  65 72 2c 42 75 66 66 65  72 25 2c 32 35 35 20 b8  |er,Buffer%,255 .|
000000e0  20 2c 2c 4c 65 6e 67 74  68 25 0d 00 64 26 f1 22  | ,,Length%..d&."|
000000f0  4c 65 6e 67 74 68 20 6f  66 20 73 74 72 69 6e 67  |Length of string|
00000100  20 69 73 20 22 3b c3 28  4c 65 6e 67 74 68 25 29  | is ";.(Length%)|
00000110  0d 00 6e 25 e3 20 4c 6f  6f 70 25 3d 42 75 66 66  |..n%. Loop%=Buff|
00000120  65 72 25 20 b8 20 42 75  66 66 65 72 25 2b 4c 65  |er% . Buffer%+Le|
00000130  6e 67 74 68 25 0d 00 78  12 20 20 20 f1 bd 28 3f  |ngth%..x.   ..(?|
00000140  4c 6f 6f 70 25 29 3b 0d  00 82 05 ed 0d 00 8c 05  |Loop%);.........|
00000150  e0 0d ff                                          |...|
00000153