Home » Archimedes archive » Acorn User » AU 1993-10.adf » !StarInfo_StarInfo » SharedCLib/SCL/SWI05

SharedCLib/SCL/SWI05

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 1993-10.adf » !StarInfo_StarInfo
Filename: SharedCLib/SCL/SWI05
Read OK:
File size: 01D9 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM     >SCL.SWI05 (fclose)
   20REM By  DCA
   30REM For 32-bit machines
   40REM (c) BAU October 1993
   50:
   60DEF FNswi05_name
   70="fclose"
   80:
   90DEF FNswi05_init
  100=0
  110:
  120DEF FNswi05_vars
  130fclose=85*4
  140=0
  150:
  160DEF FNswi05_code
  170[OPT pass%
  180.scl_fclose
  190        STMDB   (sp)!,{r9,lr}
  200        MOV     r9,r1
  210        LDR     r0,[r9]
  220        BL      clib_vectors+fclose
  230        STR     r0,[r9]
  240        MOV     r0,#0
  250        LDMIA   (sp)!,{r9,pc}^
  260]
  270=0

�     >SCL.SWI05 (fclose)

� By  DCA
� For 32-bit machines
(� (c) BAU October 1993
2:
<� �swi05_name
F
="fclose"
P:
Z� �swi05_init
d=0
n:
x� �swi05_vars
�fclose=85*4
�=0
�:
�� �swi05_code
�[OPT pass%
�.scl_fclose
�!        STMDB   (sp)!,{r9,lr}
�        MOV     r9,r1
�        LDR     r0,[r9]
�'        BL      clib_vectors+fclose
�        STR     r0,[r9]
�        MOV     r0,#0
�"        LDMIA   (sp)!,{r9,pc}^
]
=0
�
00000000  0d 00 0a 1d f4 20 20 20  20 20 3e 53 43 4c 2e 53  |.....     >SCL.S|
00000010  57 49 30 35 20 28 66 63  6c 6f 73 65 29 0d 00 14  |WI05 (fclose)...|
00000020  0d f4 20 42 79 20 20 44  43 41 0d 00 1e 19 f4 20  |.. By  DCA..... |
00000030  46 6f 72 20 33 32 2d 62  69 74 20 6d 61 63 68 69  |For 32-bit machi|
00000040  6e 65 73 0d 00 28 1a f4  20 28 63 29 20 42 41 55  |nes..(.. (c) BAU|
00000050  20 4f 63 74 6f 62 65 72  20 31 39 39 33 0d 00 32  | October 1993..2|
00000060  05 3a 0d 00 3c 11 dd 20  a4 73 77 69 30 35 5f 6e  |.:..<.. .swi05_n|
00000070  61 6d 65 0d 00 46 0d 3d  22 66 63 6c 6f 73 65 22  |ame..F.="fclose"|
00000080  0d 00 50 05 3a 0d 00 5a  11 dd 20 a4 73 77 69 30  |..P.:..Z.. .swi0|
00000090  35 5f 69 6e 69 74 0d 00  64 06 3d 30 0d 00 6e 05  |5_init..d.=0..n.|
000000a0  3a 0d 00 78 11 dd 20 a4  73 77 69 30 35 5f 76 61  |:..x.. .swi05_va|
000000b0  72 73 0d 00 82 0f 66 63  6c 6f 73 65 3d 38 35 2a  |rs....fclose=85*|
000000c0  34 0d 00 8c 06 3d 30 0d  00 96 05 3a 0d 00 a0 11  |4....=0....:....|
000000d0  dd 20 a4 73 77 69 30 35  5f 63 6f 64 65 0d 00 aa  |. .swi05_code...|
000000e0  0e 5b 4f 50 54 20 70 61  73 73 25 0d 00 b4 0f 2e  |.[OPT pass%.....|
000000f0  73 63 6c 5f 66 63 6c 6f  73 65 0d 00 be 21 20 20  |scl_fclose...!  |
00000100  20 20 20 20 20 20 53 54  4d 44 42 20 20 20 28 73  |      STMDB   (s|
00000110  70 29 21 2c 7b 72 39 2c  6c 72 7d 0d 00 c8 19 20  |p)!,{r9,lr}.... |
00000120  20 20 20 20 20 20 20 4d  4f 56 20 20 20 20 20 72  |       MOV     r|
00000130  39 2c 72 31 0d 00 d2 1b  20 20 20 20 20 20 20 20  |9,r1....        |
00000140  4c 44 52 20 20 20 20 20  72 30 2c 5b 72 39 5d 0d  |LDR     r0,[r9].|
00000150  00 dc 27 20 20 20 20 20  20 20 20 42 4c 20 20 20  |..'        BL   |
00000160  20 20 20 63 6c 69 62 5f  76 65 63 74 6f 72 73 2b  |   clib_vectors+|
00000170  66 63 6c 6f 73 65 0d 00  e6 1b 20 20 20 20 20 20  |fclose....      |
00000180  20 20 53 54 52 20 20 20  20 20 72 30 2c 5b 72 39  |  STR     r0,[r9|
00000190  5d 0d 00 f0 19 20 20 20  20 20 20 20 20 4d 4f 56  |]....        MOV|
000001a0  20 20 20 20 20 72 30 2c  23 30 0d 00 fa 22 20 20  |     r0,#0..."  |
000001b0  20 20 20 20 20 20 4c 44  4d 49 41 20 20 20 28 73  |      LDMIA   (s|
000001c0  70 29 21 2c 7b 72 39 2c  70 63 7d 5e 0d 01 04 05  |p)!,{r9,pc}^....|
000001d0  5d 0d 01 0e 06 3d 30 0d  ff                       |]....=0..|
000001d9