Home » Archimedes archive » Acorn User » AU 1996-Xmas.adf » Regulars » StarInfo/Boham/Source

StarInfo/Boham/Source

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 1996-Xmas.adf » Regulars
Filename: StarInfo/Boham/Source
Read OK:
File size: 0FD8 bytes
Load address: 0000
Exec address: 0000
File contents
   10MODE 12
   20ON ERROR ON ERROR OFF : ERROR ERR, REPORT$+" at line "+STR$ ERL
   30DIM code% 4000
   40FOR pass%=4 TO 7 STEP 3
   50P%=0:O%=code%
   60
   70sp=13
   80
   90[ OPT pass%
  100
  110;This is the module header block
  120
  130                EQUD 0                  ;start up code (module cannot run)
  140                EQUD initialise         ;intialisation code
  150                EQUD finish             ;finalisation code
  160                EQUD service_call       ;service call handling code
  170                EQUD title_string       ;module title string
  180                EQUD help_string        ;module *help string
  190                EQUD 0                  ;help and command decoding table
  200                EQUD 0                  ;SWI chunk base number (no SWI's)
  210                EQUD 0                  ;SWI handling code (no SWI's)
  220                EQUD 0                  ;SWI decoding table (no SWI's)
  230                EQUD 0                  ;SWI decoding code (no SWI's)
  240
  250;This block contains the module title
  260
  270.title_string   EQUS "NoCMOS"                   ;the module title
  280                EQUB 0                          ;terminating byte
  290                ALIGN                           ;align memory
  300
  310;This block contains info for *help module
  320
  330.help_string    EQUS "No CMOS"                  ;the module title
  340                EQUB 9                          ;perform tab
  350                EQUS "1.00 (24 May 1996)"       ;version and date
  360                EQUB 0                          ;terminating byte
  370                ALIGN
  380                                                ;align memory
  390
  400;This routine is the module initialising code
  410
  420.initialise     STMFD (sp)!,{r14}              ;preserve link on stack
  430                MOV r1,r12                     ;get copy of workspace address
  440                LDR r12,[r12]                  ;get contents of workspace
  450                CMP r12,#0                     ;is the module already on ?
  460                LDMNEFD (sp)!,{pc}             ;if so then quit routine
  470                MOV r0,#6                      ;set r0 to claim RMA workspace
  480                MOV r3,#0                      ;RMA workspace size (none)
  490                SWI "XOS_Module"               ;claim RMA workspace
  500                STR r2,[r1]
  510                MOV r12,r2
  520                BL install
  530                LDMFD (sp)!,{pc}               ;quit routine
  540
  550;This routine tidies the module up when quitting
  560
  570.finish         STMFD (sp)!,{r1-r4,r14}         ;preserve link on stack
  580                BL quit
  590                LDR r12,[r12]                   ;get contents of workspace
  600                MOV r0,#7                       ;set r0 for release RMA space
  610                MOV r2,r12                      ;set r2 to workspace address
  620                SWINE "XOS_Module"              ;free up module workspace
  630                LDMFD (sp)!,{r1-r4,pc}          ;quit routine
  640
  650;This routine deals with the module service calls
  660
  670.service_call   CMP r1,#39                      ;has computer been reset
  680                MOVNE pc,r14                    ;if so then quit routine
  690                STMFD (sp)!,{r0}                ;store register
  700                LDMFD (sp)!,{r0}                ;get register
  710                MOV pc,r14                      ;quit routine
  720
  730.install        STMFD (sp)!,{r1-r4,r14}
  740                MOV R0,#6
  750                ADR R1,routine
  760                MOV R2,#0
  770                SWI "OS_Claim"
  780                LDMFD (sp)!,{r1-r4,pc}
  790
  800.quit           STMFD (sp)!,{r1-r4,r14}
  810                MOV R0,#6
  820                ADR R1,routine
  830                MOV R2,#0
  840                SWI "OS_Release"
  850                LDMFD (sp)!,{r1-r4,pc}
  860
  870.routine        
  880                CMP R0,#162
  890                MOVNE PC,R14
  900                LDMEQFD R13!,{R15}
  910
  920
  930]
  940NEXT pass%
  950
  960
  970OSCLI "SAVE %.NoCMOS "+STR$~code%+"+"+STR$~P%
  980OSCLI "SETTYPE %.NoCMOS FFA"
� 12
'� � � � � : � �, �$+" at line "+� �
� code% 4000
(� pass%=4 � 7 � 3
2P%=0:O%=code%
<
F	sp=13
P
Z[ OPT pass%
d
n$;This is the module header block
x
�N                EQUD 0                  ;start up code (module cannot run)
�?                EQUD initialise         ;intialisation code
�>                EQUD finish             ;finalisation code
�G                EQUD service_call       ;service call handling code
�@                EQUD title_string       ;module title string
�@                EQUD help_string        ;module *help string
�L                EQUD 0                  ;help and command decoding table
�M                EQUD 0                  ;SWI chunk base number (no SWI's)
�I                EQUD 0                  ;SWI handling code (no SWI's)
�J                EQUD 0                  ;SWI decoding table (no SWI's)
�I                EQUD 0                  ;SWI decoding code (no SWI's)
�
�);This block contains the module title

E.title_string   EQUS "NoCMOS"                   ;the module title
E                EQUB 0                          ;terminating byte
"A                ALIGN                           ;align memory
,
6.;This block contains info for *help module
@
JE.help_string    EQUS "No CMOS"                  ;the module title
T@                EQUB 9                          ;perform tab
^E                EQUS "1.00 (24 May 1996)"       ;version and date
hE                EQUB 0                          ;terminating byte
r                ALIGN
|A                                                ;align memory
�
�1;This routine is the module initialising code
�
�J.initialise     STMFD (sp)!,{r14}              ;preserve link on stack
�Q                MOV r1,r12                     ;get copy of workspace address
�M                LDR r12,[r12]                  ;get contents of workspace
�N                CMP r12,#0                     ;is the module already on ?
�K                LDMNEFD (sp)!,{pc}             ;if so then quit routine
�Q                MOV r0,#6                      ;set r0 to claim RMA workspace
�M                MOV r3,#0                      ;RMA workspace size (none)
�G                SWI "XOS_Module"               ;claim RMA workspace
�                STR r2,[r1]
�                MOV r12,r2
                BL install
@                LDMFD (sp)!,{pc}               ;quit routine

&4;This routine tidies the module up when quitting
0
:K.finish         STMFD (sp)!,{r1-r4,r14}         ;preserve link on stack
D                BL quit
NN                LDR r12,[r12]                   ;get contents of workspace
XQ                MOV r0,#7                       ;set r0 for release RMA space
bP                MOV r2,r12                      ;set r2 to workspace address
lM                SWINE "XOS_Module"              ;free up module workspace
vA                LDMFD (sp)!,{r1-r4,pc}          ;quit routine
�
�5;This routine deals with the module service calls
�
�L.service_call   CMP r1,#39                      ;has computer been reset
�L                MOVNE pc,r14                    ;if so then quit routine
�C                STMFD (sp)!,{r0}                ;store register
�A                LDMFD (sp)!,{r0}                ;get register
�A                MOV pc,r14                      ;quit routine
�
�+.install        STMFD (sp)!,{r1-r4,r14}
�                MOV R0,#6
�"                ADR R1,routine
�                MOV R2,#0
"                SWI "OS_Claim"
*                LDMFD (sp)!,{r1-r4,pc}

 +.quit           STMFD (sp)!,{r1-r4,r14}
*                MOV R0,#6
4"                ADR R1,routine
>                MOV R2,#0
H$                SWI "OS_Release"
R*                LDMFD (sp)!,{r1-r4,pc}
\
f.routine        
p                CMP R0,#162
z                 MOVNE PC,R14
�&                LDMEQFD R13!,{R15}
�
�
�]
�� pass%
�
�
�'� "SAVE %.NoCMOS "+�~code%+"+"+�~P%
�� "SETTYPE %.NoCMOS FFA"
�
00000000  0d 00 0a 08 eb 20 31 32  0d 00 14 27 ee 20 85 20  |..... 12...'. . |
00000010  ee 20 85 20 87 20 3a 20  85 20 9f 2c 20 f6 24 2b  |. . . : . ., .$+|
00000020  22 20 61 74 20 6c 69 6e  65 20 22 2b c3 20 9e 0d  |" at line "+. ..|
00000030  00 1e 10 de 20 63 6f 64  65 25 20 34 30 30 30 0d  |.... code% 4000.|
00000040  00 28 15 e3 20 70 61 73  73 25 3d 34 20 b8 20 37  |.(.. pass%=4 . 7|
00000050  20 88 20 33 0d 00 32 11  50 25 3d 30 3a 4f 25 3d  | . 3..2.P%=0:O%=|
00000060  63 6f 64 65 25 0d 00 3c  04 0d 00 46 09 73 70 3d  |code%..<...F.sp=|
00000070  31 33 0d 00 50 04 0d 00  5a 0f 5b 20 4f 50 54 20  |13..P...Z.[ OPT |
00000080  70 61 73 73 25 0d 00 64  04 0d 00 6e 24 3b 54 68  |pass%..d...n$;Th|
00000090  69 73 20 69 73 20 74 68  65 20 6d 6f 64 75 6c 65  |is is the module|
000000a0  20 68 65 61 64 65 72 20  62 6c 6f 63 6b 0d 00 78  | header block..x|
000000b0  04 0d 00 82 4e 20 20 20  20 20 20 20 20 20 20 20  |....N           |
000000c0  20 20 20 20 20 45 51 55  44 20 30 20 20 20 20 20  |     EQUD 0     |
000000d0  20 20 20 20 20 20 20 20  20 20 20 20 20 3b 73 74  |             ;st|
000000e0  61 72 74 20 75 70 20 63  6f 64 65 20 28 6d 6f 64  |art up code (mod|
000000f0  75 6c 65 20 63 61 6e 6e  6f 74 20 72 75 6e 29 0d  |ule cannot run).|
00000100  00 8c 3f 20 20 20 20 20  20 20 20 20 20 20 20 20  |..?             |
00000110  20 20 20 45 51 55 44 20  69 6e 69 74 69 61 6c 69  |   EQUD initiali|
00000120  73 65 20 20 20 20 20 20  20 20 20 3b 69 6e 74 69  |se         ;inti|
00000130  61 6c 69 73 61 74 69 6f  6e 20 63 6f 64 65 0d 00  |alisation code..|
00000140  96 3e 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.>              |
00000150  20 20 45 51 55 44 20 66  69 6e 69 73 68 20 20 20  |  EQUD finish   |
00000160  20 20 20 20 20 20 20 20  20 20 3b 66 69 6e 61 6c  |          ;final|
00000170  69 73 61 74 69 6f 6e 20  63 6f 64 65 0d 00 a0 47  |isation code...G|
00000180  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000190  45 51 55 44 20 73 65 72  76 69 63 65 5f 63 61 6c  |EQUD service_cal|
000001a0  6c 20 20 20 20 20 20 20  3b 73 65 72 76 69 63 65  |l       ;service|
000001b0  20 63 61 6c 6c 20 68 61  6e 64 6c 69 6e 67 20 63  | call handling c|
000001c0  6f 64 65 0d 00 aa 40 20  20 20 20 20 20 20 20 20  |ode...@         |
000001d0  20 20 20 20 20 20 20 45  51 55 44 20 74 69 74 6c  |       EQUD titl|
000001e0  65 5f 73 74 72 69 6e 67  20 20 20 20 20 20 20 3b  |e_string       ;|
000001f0  6d 6f 64 75 6c 65 20 74  69 74 6c 65 20 73 74 72  |module title str|
00000200  69 6e 67 0d 00 b4 40 20  20 20 20 20 20 20 20 20  |ing...@         |
00000210  20 20 20 20 20 20 20 45  51 55 44 20 68 65 6c 70  |       EQUD help|
00000220  5f 73 74 72 69 6e 67 20  20 20 20 20 20 20 20 3b  |_string        ;|
00000230  6d 6f 64 75 6c 65 20 2a  68 65 6c 70 20 73 74 72  |module *help str|
00000240  69 6e 67 0d 00 be 4c 20  20 20 20 20 20 20 20 20  |ing...L         |
00000250  20 20 20 20 20 20 20 45  51 55 44 20 30 20 20 20  |       EQUD 0   |
00000260  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 3b  |               ;|
00000270  68 65 6c 70 20 61 6e 64  20 63 6f 6d 6d 61 6e 64  |help and command|
00000280  20 64 65 63 6f 64 69 6e  67 20 74 61 62 6c 65 0d  | decoding table.|
00000290  00 c8 4d 20 20 20 20 20  20 20 20 20 20 20 20 20  |..M             |
000002a0  20 20 20 45 51 55 44 20  30 20 20 20 20 20 20 20  |   EQUD 0       |
000002b0  20 20 20 20 20 20 20 20  20 20 20 3b 53 57 49 20  |           ;SWI |
000002c0  63 68 75 6e 6b 20 62 61  73 65 20 6e 75 6d 62 65  |chunk base numbe|
000002d0  72 20 28 6e 6f 20 53 57  49 27 73 29 0d 00 d2 49  |r (no SWI's)...I|
000002e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000002f0  45 51 55 44 20 30 20 20  20 20 20 20 20 20 20 20  |EQUD 0          |
00000300  20 20 20 20 20 20 20 20  3b 53 57 49 20 68 61 6e  |        ;SWI han|
00000310  64 6c 69 6e 67 20 63 6f  64 65 20 28 6e 6f 20 53  |dling code (no S|
00000320  57 49 27 73 29 0d 00 dc  4a 20 20 20 20 20 20 20  |WI's)...J       |
00000330  20 20 20 20 20 20 20 20  20 45 51 55 44 20 30 20  |         EQUD 0 |
00000340  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000350  20 3b 53 57 49 20 64 65  63 6f 64 69 6e 67 20 74  | ;SWI decoding t|
00000360  61 62 6c 65 20 28 6e 6f  20 53 57 49 27 73 29 0d  |able (no SWI's).|
00000370  00 e6 49 20 20 20 20 20  20 20 20 20 20 20 20 20  |..I             |
00000380  20 20 20 45 51 55 44 20  30 20 20 20 20 20 20 20  |   EQUD 0       |
00000390  20 20 20 20 20 20 20 20  20 20 20 3b 53 57 49 20  |           ;SWI |
000003a0  64 65 63 6f 64 69 6e 67  20 63 6f 64 65 20 28 6e  |decoding code (n|
000003b0  6f 20 53 57 49 27 73 29  0d 00 f0 04 0d 00 fa 29  |o SWI's).......)|
000003c0  3b 54 68 69 73 20 62 6c  6f 63 6b 20 63 6f 6e 74  |;This block cont|
000003d0  61 69 6e 73 20 74 68 65  20 6d 6f 64 75 6c 65 20  |ains the module |
000003e0  74 69 74 6c 65 0d 01 04  04 0d 01 0e 45 2e 74 69  |title.......E.ti|
000003f0  74 6c 65 5f 73 74 72 69  6e 67 20 20 20 45 51 55  |tle_string   EQU|
00000400  53 20 22 4e 6f 43 4d 4f  53 22 20 20 20 20 20 20  |S "NoCMOS"      |
00000410  20 20 20 20 20 20 20 20  20 20 20 20 20 3b 74 68  |             ;th|
00000420  65 20 6d 6f 64 75 6c 65  20 74 69 74 6c 65 0d 01  |e module title..|
00000430  18 45 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.E              |
00000440  20 20 45 51 55 42 20 30  20 20 20 20 20 20 20 20  |  EQUB 0        |
00000450  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000460  20 20 3b 74 65 72 6d 69  6e 61 74 69 6e 67 20 62  |  ;terminating b|
00000470  79 74 65 0d 01 22 41 20  20 20 20 20 20 20 20 20  |yte.."A         |
00000480  20 20 20 20 20 20 20 41  4c 49 47 4e 20 20 20 20  |       ALIGN    |
00000490  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000004a0  20 20 20 20 20 20 20 3b  61 6c 69 67 6e 20 6d 65  |       ;align me|
000004b0  6d 6f 72 79 0d 01 2c 04  0d 01 36 2e 3b 54 68 69  |mory..,...6.;Thi|
000004c0  73 20 62 6c 6f 63 6b 20  63 6f 6e 74 61 69 6e 73  |s block contains|
000004d0  20 69 6e 66 6f 20 66 6f  72 20 2a 68 65 6c 70 20  | info for *help |
000004e0  6d 6f 64 75 6c 65 0d 01  40 04 0d 01 4a 45 2e 68  |module..@...JE.h|
000004f0  65 6c 70 5f 73 74 72 69  6e 67 20 20 20 20 45 51  |elp_string    EQ|
00000500  55 53 20 22 4e 6f 20 43  4d 4f 53 22 20 20 20 20  |US "No CMOS"    |
00000510  20 20 20 20 20 20 20 20  20 20 20 20 20 20 3b 74  |              ;t|
00000520  68 65 20 6d 6f 64 75 6c  65 20 74 69 74 6c 65 0d  |he module title.|
00000530  01 54 40 20 20 20 20 20  20 20 20 20 20 20 20 20  |.T@             |
00000540  20 20 20 45 51 55 42 20  39 20 20 20 20 20 20 20  |   EQUB 9       |
00000550  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000560  20 20 20 3b 70 65 72 66  6f 72 6d 20 74 61 62 0d  |   ;perform tab.|
00000570  01 5e 45 20 20 20 20 20  20 20 20 20 20 20 20 20  |.^E             |
00000580  20 20 20 45 51 55 53 20  22 31 2e 30 30 20 28 32  |   EQUS "1.00 (2|
00000590  34 20 4d 61 79 20 31 39  39 36 29 22 20 20 20 20  |4 May 1996)"    |
000005a0  20 20 20 3b 76 65 72 73  69 6f 6e 20 61 6e 64 20  |   ;version and |
000005b0  64 61 74 65 0d 01 68 45  20 20 20 20 20 20 20 20  |date..hE        |
000005c0  20 20 20 20 20 20 20 20  45 51 55 42 20 30 20 20  |        EQUB 0  |
000005d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000005e0  20 20 20 20 20 20 20 20  3b 74 65 72 6d 69 6e 61  |        ;termina|
000005f0  74 69 6e 67 20 62 79 74  65 0d 01 72 19 20 20 20  |ting byte..r.   |
00000600  20 20 20 20 20 20 20 20  20 20 20 20 20 41 4c 49  |             ALI|
00000610  47 4e 0d 01 7c 41 20 20  20 20 20 20 20 20 20 20  |GN..|A          |
00000620  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000640  20 20 20 20 20 20 3b 61  6c 69 67 6e 20 6d 65 6d  |      ;align mem|
00000650  6f 72 79 0d 01 86 04 0d  01 90 31 3b 54 68 69 73  |ory.......1;This|
00000660  20 72 6f 75 74 69 6e 65  20 69 73 20 74 68 65 20  | routine is the |
00000670  6d 6f 64 75 6c 65 20 69  6e 69 74 69 61 6c 69 73  |module initialis|
00000680  69 6e 67 20 63 6f 64 65  0d 01 9a 04 0d 01 a4 4a  |ing code.......J|
00000690  2e 69 6e 69 74 69 61 6c  69 73 65 20 20 20 20 20  |.initialise     |
000006a0  53 54 4d 46 44 20 28 73  70 29 21 2c 7b 72 31 34  |STMFD (sp)!,{r14|
000006b0  7d 20 20 20 20 20 20 20  20 20 20 20 20 20 20 3b  |}              ;|
000006c0  70 72 65 73 65 72 76 65  20 6c 69 6e 6b 20 6f 6e  |preserve link on|
000006d0  20 73 74 61 63 6b 0d 01  ae 51 20 20 20 20 20 20  | stack...Q      |
000006e0  20 20 20 20 20 20 20 20  20 20 4d 4f 56 20 72 31  |          MOV r1|
000006f0  2c 72 31 32 20 20 20 20  20 20 20 20 20 20 20 20  |,r12            |
00000700  20 20 20 20 20 20 20 20  20 3b 67 65 74 20 63 6f  |         ;get co|
00000710  70 79 20 6f 66 20 77 6f  72 6b 73 70 61 63 65 20  |py of workspace |
00000720  61 64 64 72 65 73 73 0d  01 b8 4d 20 20 20 20 20  |address...M     |
00000730  20 20 20 20 20 20 20 20  20 20 20 4c 44 52 20 72  |           LDR r|
00000740  31 32 2c 5b 72 31 32 5d  20 20 20 20 20 20 20 20  |12,[r12]        |
00000750  20 20 20 20 20 20 20 20  20 20 3b 67 65 74 20 63  |          ;get c|
00000760  6f 6e 74 65 6e 74 73 20  6f 66 20 77 6f 72 6b 73  |ontents of works|
00000770  70 61 63 65 0d 01 c2 4e  20 20 20 20 20 20 20 20  |pace...N        |
00000780  20 20 20 20 20 20 20 20  43 4d 50 20 72 31 32 2c  |        CMP r12,|
00000790  23 30 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |#0              |
000007a0  20 20 20 20 20 20 20 3b  69 73 20 74 68 65 20 6d  |       ;is the m|
000007b0  6f 64 75 6c 65 20 61 6c  72 65 61 64 79 20 6f 6e  |odule already on|
000007c0  20 3f 0d 01 cc 4b 20 20  20 20 20 20 20 20 20 20  | ?...K          |
000007d0  20 20 20 20 20 20 4c 44  4d 4e 45 46 44 20 28 73  |      LDMNEFD (s|
000007e0  70 29 21 2c 7b 70 63 7d  20 20 20 20 20 20 20 20  |p)!,{pc}        |
000007f0  20 20 20 20 20 3b 69 66  20 73 6f 20 74 68 65 6e  |     ;if so then|
00000800  20 71 75 69 74 20 72 6f  75 74 69 6e 65 0d 01 d6  | quit routine...|
00000810  51 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |Q               |
00000820  20 4d 4f 56 20 72 30 2c  23 36 20 20 20 20 20 20  | MOV r0,#6      |
00000830  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000840  3b 73 65 74 20 72 30 20  74 6f 20 63 6c 61 69 6d  |;set r0 to claim|
00000850  20 52 4d 41 20 77 6f 72  6b 73 70 61 63 65 0d 01  | RMA workspace..|
00000860  e0 4d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.M              |
00000870  20 20 4d 4f 56 20 72 33  2c 23 30 20 20 20 20 20  |  MOV r3,#0     |
00000880  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000890  20 3b 52 4d 41 20 77 6f  72 6b 73 70 61 63 65 20  | ;RMA workspace |
000008a0  73 69 7a 65 20 28 6e 6f  6e 65 29 0d 01 ea 47 20  |size (none)...G |
000008b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 53  |               S|
000008c0  57 49 20 22 58 4f 53 5f  4d 6f 64 75 6c 65 22 20  |WI "XOS_Module" |
000008d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 3b 63  |              ;c|
000008e0  6c 61 69 6d 20 52 4d 41  20 77 6f 72 6b 73 70 61  |laim RMA workspa|
000008f0  63 65 0d 01 f4 1f 20 20  20 20 20 20 20 20 20 20  |ce....          |
00000900  20 20 20 20 20 20 53 54  52 20 72 32 2c 5b 72 31  |      STR r2,[r1|
00000910  5d 0d 01 fe 1e 20 20 20  20 20 20 20 20 20 20 20  |]....           |
00000920  20 20 20 20 20 4d 4f 56  20 72 31 32 2c 72 32 0d  |     MOV r12,r2.|
00000930  02 08 1e 20 20 20 20 20  20 20 20 20 20 20 20 20  |...             |
00000940  20 20 20 42 4c 20 69 6e  73 74 61 6c 6c 0d 02 12  |   BL install...|
00000950  40 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |@               |
00000960  20 4c 44 4d 46 44 20 28  73 70 29 21 2c 7b 70 63  | LDMFD (sp)!,{pc|
00000970  7d 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |}               |
00000980  3b 71 75 69 74 20 72 6f  75 74 69 6e 65 0d 02 1c  |;quit routine...|
00000990  04 0d 02 26 34 3b 54 68  69 73 20 72 6f 75 74 69  |...&4;This routi|
000009a0  6e 65 20 74 69 64 69 65  73 20 74 68 65 20 6d 6f  |ne tidies the mo|
000009b0  64 75 6c 65 20 75 70 20  77 68 65 6e 20 71 75 69  |dule up when qui|
000009c0  74 74 69 6e 67 0d 02 30  04 0d 02 3a 4b 2e 66 69  |tting..0...:K.fi|
000009d0  6e 69 73 68 20 20 20 20  20 20 20 20 20 53 54 4d  |nish         STM|
000009e0  46 44 20 28 73 70 29 21  2c 7b 72 31 2d 72 34 2c  |FD (sp)!,{r1-r4,|
000009f0  72 31 34 7d 20 20 20 20  20 20 20 20 20 3b 70 72  |r14}         ;pr|
00000a00  65 73 65 72 76 65 20 6c  69 6e 6b 20 6f 6e 20 73  |eserve link on s|
00000a10  74 61 63 6b 0d 02 44 1b  20 20 20 20 20 20 20 20  |tack..D.        |
00000a20  20 20 20 20 20 20 20 20  42 4c 20 71 75 69 74 0d  |        BL quit.|
00000a30  02 4e 4e 20 20 20 20 20  20 20 20 20 20 20 20 20  |.NN             |
00000a40  20 20 20 4c 44 52 20 72  31 32 2c 5b 72 31 32 5d  |   LDR r12,[r12]|
00000a50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000a60  20 20 20 3b 67 65 74 20  63 6f 6e 74 65 6e 74 73  |   ;get contents|
00000a70  20 6f 66 20 77 6f 72 6b  73 70 61 63 65 0d 02 58  | of workspace..X|
00000a80  51 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |Q               |
00000a90  20 4d 4f 56 20 72 30 2c  23 37 20 20 20 20 20 20  | MOV r0,#7      |
00000aa0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000ab0  20 3b 73 65 74 20 72 30  20 66 6f 72 20 72 65 6c  | ;set r0 for rel|
00000ac0  65 61 73 65 20 52 4d 41  20 73 70 61 63 65 0d 02  |ease RMA space..|
00000ad0  62 50 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |bP              |
00000ae0  20 20 4d 4f 56 20 72 32  2c 72 31 32 20 20 20 20  |  MOV r2,r12    |
00000af0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000b00  20 20 3b 73 65 74 20 72  32 20 74 6f 20 77 6f 72  |  ;set r2 to wor|
00000b10  6b 73 70 61 63 65 20 61  64 64 72 65 73 73 0d 02  |kspace address..|
00000b20  6c 4d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |lM              |
00000b30  20 20 53 57 49 4e 45 20  22 58 4f 53 5f 4d 6f 64  |  SWINE "XOS_Mod|
00000b40  75 6c 65 22 20 20 20 20  20 20 20 20 20 20 20 20  |ule"            |
00000b50  20 20 3b 66 72 65 65 20  75 70 20 6d 6f 64 75 6c  |  ;free up modul|
00000b60  65 20 77 6f 72 6b 73 70  61 63 65 0d 02 76 41 20  |e workspace..vA |
00000b70  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 4c  |               L|
00000b80  44 4d 46 44 20 28 73 70  29 21 2c 7b 72 31 2d 72  |DMFD (sp)!,{r1-r|
00000b90  34 2c 70 63 7d 20 20 20  20 20 20 20 20 20 20 3b  |4,pc}          ;|
00000ba0  71 75 69 74 20 72 6f 75  74 69 6e 65 0d 02 80 04  |quit routine....|
00000bb0  0d 02 8a 35 3b 54 68 69  73 20 72 6f 75 74 69 6e  |...5;This routin|
00000bc0  65 20 64 65 61 6c 73 20  77 69 74 68 20 74 68 65  |e deals with the|
00000bd0  20 6d 6f 64 75 6c 65 20  73 65 72 76 69 63 65 20  | module service |
00000be0  63 61 6c 6c 73 0d 02 94  04 0d 02 9e 4c 2e 73 65  |calls.......L.se|
00000bf0  72 76 69 63 65 5f 63 61  6c 6c 20 20 20 43 4d 50  |rvice_call   CMP|
00000c00  20 72 31 2c 23 33 39 20  20 20 20 20 20 20 20 20  | r1,#39         |
00000c10  20 20 20 20 20 20 20 20  20 20 20 20 20 3b 68 61  |             ;ha|
00000c20  73 20 63 6f 6d 70 75 74  65 72 20 62 65 65 6e 20  |s computer been |
00000c30  72 65 73 65 74 0d 02 a8  4c 20 20 20 20 20 20 20  |reset...L       |
00000c40  20 20 20 20 20 20 20 20  20 4d 4f 56 4e 45 20 70  |         MOVNE p|
00000c50  63 2c 72 31 34 20 20 20  20 20 20 20 20 20 20 20  |c,r14           |
00000c60  20 20 20 20 20 20 20 20  20 3b 69 66 20 73 6f 20  |         ;if so |
00000c70  74 68 65 6e 20 71 75 69  74 20 72 6f 75 74 69 6e  |then quit routin|
00000c80  65 0d 02 b2 43 20 20 20  20 20 20 20 20 20 20 20  |e...C           |
00000c90  20 20 20 20 20 53 54 4d  46 44 20 28 73 70 29 21  |     STMFD (sp)!|
00000ca0  2c 7b 72 30 7d 20 20 20  20 20 20 20 20 20 20 20  |,{r0}           |
00000cb0  20 20 20 20 20 3b 73 74  6f 72 65 20 72 65 67 69  |     ;store regi|
00000cc0  73 74 65 72 0d 02 bc 41  20 20 20 20 20 20 20 20  |ster...A        |
00000cd0  20 20 20 20 20 20 20 20  4c 44 4d 46 44 20 28 73  |        LDMFD (s|
00000ce0  70 29 21 2c 7b 72 30 7d  20 20 20 20 20 20 20 20  |p)!,{r0}        |
00000cf0  20 20 20 20 20 20 20 20  3b 67 65 74 20 72 65 67  |        ;get reg|
00000d00  69 73 74 65 72 0d 02 c6  41 20 20 20 20 20 20 20  |ister...A       |
00000d10  20 20 20 20 20 20 20 20  20 4d 4f 56 20 70 63 2c  |         MOV pc,|
00000d20  72 31 34 20 20 20 20 20  20 20 20 20 20 20 20 20  |r14             |
00000d30  20 20 20 20 20 20 20 20  20 3b 71 75 69 74 20 72  |         ;quit r|
00000d40  6f 75 74 69 6e 65 0d 02  d0 04 0d 02 da 2b 2e 69  |outine.......+.i|
00000d50  6e 73 74 61 6c 6c 20 20  20 20 20 20 20 20 53 54  |nstall        ST|
00000d60  4d 46 44 20 28 73 70 29  21 2c 7b 72 31 2d 72 34  |MFD (sp)!,{r1-r4|
00000d70  2c 72 31 34 7d 0d 02 e4  1d 20 20 20 20 20 20 20  |,r14}....       |
00000d80  20 20 20 20 20 20 20 20  20 4d 4f 56 20 52 30 2c  |         MOV R0,|
00000d90  23 36 0d 02 ee 22 20 20  20 20 20 20 20 20 20 20  |#6..."          |
00000da0  20 20 20 20 20 20 41 44  52 20 52 31 2c 72 6f 75  |      ADR R1,rou|
00000db0  74 69 6e 65 0d 02 f8 1d  20 20 20 20 20 20 20 20  |tine....        |
00000dc0  20 20 20 20 20 20 20 20  4d 4f 56 20 52 32 2c 23  |        MOV R2,#|
00000dd0  30 0d 03 02 22 20 20 20  20 20 20 20 20 20 20 20  |0..."           |
00000de0  20 20 20 20 20 53 57 49  20 22 4f 53 5f 43 6c 61  |     SWI "OS_Cla|
00000df0  69 6d 22 0d 03 0c 2a 20  20 20 20 20 20 20 20 20  |im"...*         |
00000e00  20 20 20 20 20 20 20 4c  44 4d 46 44 20 28 73 70  |       LDMFD (sp|
00000e10  29 21 2c 7b 72 31 2d 72  34 2c 70 63 7d 0d 03 16  |)!,{r1-r4,pc}...|
00000e20  04 0d 03 20 2b 2e 71 75  69 74 20 20 20 20 20 20  |... +.quit      |
00000e30  20 20 20 20 20 53 54 4d  46 44 20 28 73 70 29 21  |     STMFD (sp)!|
00000e40  2c 7b 72 31 2d 72 34 2c  72 31 34 7d 0d 03 2a 1d  |,{r1-r4,r14}..*.|
00000e50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000e60  4d 4f 56 20 52 30 2c 23  36 0d 03 34 22 20 20 20  |MOV R0,#6..4"   |
00000e70  20 20 20 20 20 20 20 20  20 20 20 20 20 41 44 52  |             ADR|
00000e80  20 52 31 2c 72 6f 75 74  69 6e 65 0d 03 3e 1d 20  | R1,routine..>. |
00000e90  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 4d  |               M|
00000ea0  4f 56 20 52 32 2c 23 30  0d 03 48 24 20 20 20 20  |OV R2,#0..H$    |
00000eb0  20 20 20 20 20 20 20 20  20 20 20 20 53 57 49 20  |            SWI |
00000ec0  22 4f 53 5f 52 65 6c 65  61 73 65 22 0d 03 52 2a  |"OS_Release"..R*|
00000ed0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000ee0  4c 44 4d 46 44 20 28 73  70 29 21 2c 7b 72 31 2d  |LDMFD (sp)!,{r1-|
00000ef0  72 34 2c 70 63 7d 0d 03  5c 04 0d 03 66 14 2e 72  |r4,pc}..\...f..r|
00000f00  6f 75 74 69 6e 65 20 20  20 20 20 20 20 20 0d 03  |outine        ..|
00000f10  70 1f 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |p.              |
00000f20  20 20 43 4d 50 20 52 30  2c 23 31 36 32 0d 03 7a  |  CMP R0,#162..z|
00000f30  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000f40  20 4d 4f 56 4e 45 20 50  43 2c 52 31 34 0d 03 84  | MOVNE PC,R14...|
00000f50  26 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |&               |
00000f60  20 4c 44 4d 45 51 46 44  20 52 31 33 21 2c 7b 52  | LDMEQFD R13!,{R|
00000f70  31 35 7d 0d 03 8e 04 0d  03 98 04 0d 03 a2 05 5d  |15}............]|
00000f80  0d 03 ac 0b ed 20 70 61  73 73 25 0d 03 b6 04 0d  |..... pass%.....|
00000f90  03 c0 04 0d 03 ca 27 ff  20 22 53 41 56 45 20 25  |......'. "SAVE %|
00000fa0  2e 4e 6f 43 4d 4f 53 20  22 2b c3 7e 63 6f 64 65  |.NoCMOS "+.~code|
00000fb0  25 2b 22 2b 22 2b c3 7e  50 25 0d 03 d4 1c ff 20  |%+"+"+.~P%..... |
00000fc0  22 53 45 54 54 59 50 45  20 25 2e 4e 6f 43 4d 4f  |"SETTYPE %.NoCMO|
00000fd0  53 20 46 46 41 22 0d ff                           |S FFA"..|
00000fd8