Home » Archimedes archive » Acorn User » AU 1994-11.adf » !StarInfo_StarInfo » Miles/ShutDown/Source
Miles/ShutDown/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 1994-11.adf » !StarInfo_StarInfo |
Filename: | Miles/ShutDown/Source |
Read OK: | ✔ |
File size: | 0BA5 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10ON ERROR PRINT REPORT$;" at line ";ERL:END 20DIM code% &100 30FOR pass%=%0100 TO %0111 STEP 3 40 O%=code% 50 P%=0 60 [ 70 OPT pass% 80 ; 90 EQUD &0 ;Start code 100 EQUD init ;Initialisation code 110 EQUD &0 ;Finalisation code 120 EQUD service ;Service call code 130 EQUD title ;Title string 140 EQUD help ;Help string 150 EQUD &0 ;Command table 160 ; 170 .title 180 EQUS "ShutDownUtils" 190 EQUB 0 200 ALIGN 210 ; 220 .help 230 EQUS "ShutDown Utils" 240 EQUB 9 250 EQUS "0.01 (22 Feb 1994) by Andrew D Miles" 260 EQUB 0 270 ALIGN 280 ; 290 .taskmanager 300 EQUS "TaskManager" 310 EQUB 0 320 ALIGN 330 ; 340 .checksum 350 EQUD &EF7C 360 ; 370 .crc 380 EQUD &0 390 ; 400 .badservice 410 ;The number below is for Service_Shutdown (&7E) !!! 420 ;It is caused by the RAMFSFiler module. Acorn please 430 ;remember you must preserve R1 during a service call! 440 ; 450 EQUD &3928B84 460 ; 470 .init 480 STMDB R13!,{R0-R5,R12,R14} ;Store registers 490 MOV R0,#&12 ;Reason code 18 500 ADR R1,taskmanager ;Pointer to module name 510 SWI "XOS_Module" ;Extract module info 520 ; 530 MOVVC R0,#0 ;Clear R0 540 MOVVC R1,R3 ;Set start position 550 LDRVC R2,[R1,#-4] ;Get module length 560 SUBVC R2,R2,#4 ;Subtract 1 word 570 ADDVC R2,R2,R1 ;Set end position 580 MOVVC R3,#1 ;Set increment to 1 590 SWIVC "XOS_CRC" ;Perform CRC 600 LDMVSIA R13!,{R0-R5,R12,PC} ;On error, reload registers 610 ; 620 STR R0,crc ;Store CRC 630 LDMIA R13!,{R0-R5,R12,PC} ;Reload registers 640 ; 650 .service 660 STMDB R13!,{R0,R12,R14} ;Store registers 670 TEQ R1,#&7E ;Is it Desktop_ShutDown? 680 LDRNE R0,badservice ;If no, Load 'bad service' 690 TEQNE R1,R0 ;Is it 'bad service' 700 LDMNEIA R13!,{R0,R12,PC} ;If no, reload registers 710 ; 720 LDR R0,crc ;Load CRC 730 LDR R1,checksum ;Load checksum 740 CMP R0,R1 ;Are they equal? 750 LDMNEIA R13!,{R0,R12,PC} ;If no, reload registers 760 ; 770 MOV R0,#&16 ;Reason code 22 780 SWI "OS_FSControl" ;Close all files 790 MOV R1,#&7E ;Correct 'bad service bug' 800 LDMIA R13!,{R0,R12,PC} ;Reload registers 810 ] 820NEXT 830: 840OSCLI("Save ShutUtils "+STR$~code%+" "+STR$~O%) 850OSCLI("SetType ShutUtils Module")
� � � �$;" at line ";�:� � code% &100 � pass%=%0100 � %0111 � 3 ( O%=code% 2 P%=0 < [ F OPT pass% P ; Z9 EQUD &0 ;Start code dB EQUD init ;Initialisation code n@ EQUD &0 ;Finalisation code x@ EQUD service ;Service call code �; EQUD title ;Title string �: EQUD help ;Help string �< EQUD &0 ;Command table � ; � .title � EQUS "ShutDownUtils" � EQUB 0 � ALIGN � ; � .help � EQUS "ShutDown Utils" � EQUB 9 �1 EQUS "0.01 (22 Feb 1994) by Andrew D Miles" EQUB 0 ALIGN ; " .taskmanager , EQUS "TaskManager" 6 EQUB 0 @ ALIGN J ; T .checksum ^ EQUD &EF7C h ; r .crc | EQUD &0 � ; � .badservice �9 ;The number below is for Service_Shutdown (&7E) !!! �; ;It is caused by the RAMFSFiler module. Acorn please �; ;remember you must preserve R1 during a service call! � ; � EQUD &3928B84 � ; � .init �> STMDB R13!,{R0-R5,R12,R14} ;Store registers �= MOV R0,#&12 ;Reason code 18 �E ADR R1,taskmanager ;Pointer to module name �B SWI "XOS_Module" ;Extract module info ; 7 MOVVC R0,#0 ;Clear R0 A MOVVC R1,R3 ;Set start position &@ LDRVC R2,[R1,#-4] ;Get module length 0> SUBVC R2,R2,#4 ;Subtract 1 word :? ADDVC R2,R2,R1 ;Set end position DA MOVVC R3,#1 ;Set increment to 1 N: SWIVC "XOS_CRC" ;Perform CRC XI LDMVSIA R13!,{R0-R5,R12,PC} ;On error, reload registers b ; l8 STR R0,crc ;Store CRC v? LDMIA R13!,{R0-R5,R12,PC} ;Reload registers � ; � .service �> STMDB R13!,{R0,R12,R14} ;Store registers �F TEQ R1,#&7E ;Is it Desktop_ShutDown? �H LDRNE R0,badservice ;If no, Load 'bad service' �B TEQNE R1,R0 ;Is it 'bad service' �F LDMNEIA R13!,{R0,R12,PC} ;If no, reload registers � ; �7 LDR R0,crc ;Load CRC �< LDR R1,checksum ;Load checksum �> CMP R0,R1 ;Are they equal? �F LDMNEIA R13!,{R0,R12,PC} ;If no, reload registers � ; = MOV R0,#&16 ;Reason code 22 > SWI "OS_FSControl" ;Close all files H MOV R1,#&7E ;Correct 'bad service bug' ? LDMIA R13!,{R0,R12,PC} ;Reload registers * ] 4� >: H)�("Save ShutUtils "+�~code%+" "+�~O%) R!�("SetType ShutUtils Module") �
00000000 0d 00 0a 1c ee 20 85 20 f1 20 f6 24 3b 22 20 61 |..... . . .$;" a| 00000010 74 20 6c 69 6e 65 20 22 3b 9e 3a e0 0d 00 14 10 |t line ";.:.....| 00000020 de 20 63 6f 64 65 25 20 26 31 30 30 0d 00 1e 1d |. code% &100....| 00000030 e3 20 70 61 73 73 25 3d 25 30 31 30 30 20 b8 20 |. pass%=%0100 . | 00000040 25 30 31 31 31 20 88 20 33 0d 00 28 0d 20 4f 25 |%0111 . 3..(. O%| 00000050 3d 63 6f 64 65 25 0d 00 32 09 20 50 25 3d 30 0d |=code%..2. P%=0.| 00000060 00 3c 06 20 5b 0d 00 46 0e 20 4f 50 54 20 70 61 |.<. [..F. OPT pa| 00000070 73 73 25 0d 00 50 06 20 3b 0d 00 5a 39 20 45 51 |ss%..P. ;..Z9 EQ| 00000080 55 44 20 26 30 20 20 20 20 20 20 20 20 20 20 20 |UD &0 | 00000090 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000a0 20 20 20 20 20 20 20 3b 53 74 61 72 74 20 63 6f | ;Start co| 000000b0 64 65 0d 00 64 42 20 45 51 55 44 20 69 6e 69 74 |de..dB EQUD init| 000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 000000e0 3b 49 6e 69 74 69 61 6c 69 73 61 74 69 6f 6e 20 |;Initialisation | 000000f0 63 6f 64 65 0d 00 6e 40 20 45 51 55 44 20 26 30 |code..n@ EQUD &0| 00000100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 00000120 20 20 3b 46 69 6e 61 6c 69 73 61 74 69 6f 6e 20 | ;Finalisation | 00000130 63 6f 64 65 0d 00 78 40 20 45 51 55 44 20 73 65 |code..x@ EQUD se| 00000140 72 76 69 63 65 20 20 20 20 20 20 20 20 20 20 20 |rvice | 00000150 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000160 20 20 3b 53 65 72 76 69 63 65 20 63 61 6c 6c 20 | ;Service call | 00000170 63 6f 64 65 0d 00 82 3b 20 45 51 55 44 20 74 69 |code...; EQUD ti| 00000180 74 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 |tle | 00000190 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000001a0 20 20 3b 54 69 74 6c 65 20 73 74 72 69 6e 67 0d | ;Title string.| 000001b0 00 8c 3a 20 45 51 55 44 20 68 65 6c 70 20 20 20 |..: EQUD help | 000001c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000001d0 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 48 65 | ;He| 000001e0 6c 70 20 73 74 72 69 6e 67 0d 00 96 3c 20 45 51 |lp string...< EQ| 000001f0 55 44 20 26 30 20 20 20 20 20 20 20 20 20 20 20 |UD &0 | 00000200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000210 20 20 20 20 20 20 20 3b 43 6f 6d 6d 61 6e 64 20 | ;Command | 00000220 74 61 62 6c 65 0d 00 a0 06 20 3b 0d 00 aa 0b 20 |table.... ;.... | 00000230 2e 74 69 74 6c 65 0d 00 b4 1a 20 20 45 51 55 53 |.title.... EQUS| 00000240 20 22 53 68 75 74 44 6f 77 6e 55 74 69 6c 73 22 | "ShutDownUtils"| 00000250 0d 00 be 0c 20 20 45 51 55 42 20 30 0d 00 c8 0b |.... EQUB 0....| 00000260 20 20 41 4c 49 47 4e 0d 00 d2 06 20 3b 0d 00 dc | ALIGN.... ;...| 00000270 0a 20 2e 68 65 6c 70 0d 00 e6 1b 20 20 45 51 55 |. .help.... EQU| 00000280 53 20 22 53 68 75 74 44 6f 77 6e 20 55 74 69 6c |S "ShutDown Util| 00000290 73 22 0d 00 f0 0c 20 20 45 51 55 42 20 39 0d 00 |s".... EQUB 9..| 000002a0 fa 31 20 20 45 51 55 53 20 22 30 2e 30 31 20 28 |.1 EQUS "0.01 (| 000002b0 32 32 20 46 65 62 20 31 39 39 34 29 20 62 79 20 |22 Feb 1994) by | 000002c0 41 6e 64 72 65 77 20 44 20 4d 69 6c 65 73 22 0d |Andrew D Miles".| 000002d0 01 04 0c 20 20 45 51 55 42 20 30 0d 01 0e 0b 20 |... EQUB 0.... | 000002e0 20 41 4c 49 47 4e 0d 01 18 06 20 3b 0d 01 22 11 | ALIGN.... ;..".| 000002f0 20 2e 74 61 73 6b 6d 61 6e 61 67 65 72 0d 01 2c | .taskmanager..,| 00000300 18 20 20 45 51 55 53 20 22 54 61 73 6b 4d 61 6e |. EQUS "TaskMan| 00000310 61 67 65 72 22 0d 01 36 0c 20 20 45 51 55 42 20 |ager"..6. EQUB | 00000320 30 0d 01 40 0b 20 20 41 4c 49 47 4e 0d 01 4a 06 |0..@. ALIGN..J.| 00000330 20 3b 0d 01 54 0e 20 2e 63 68 65 63 6b 73 75 6d | ;..T. .checksum| 00000340 0d 01 5e 10 20 20 45 51 55 44 20 26 45 46 37 43 |..^. EQUD &EF7C| 00000350 0d 01 68 06 20 3b 0d 01 72 09 20 2e 63 72 63 0d |..h. ;..r. .crc.| 00000360 01 7c 0d 20 20 45 51 55 44 20 26 30 0d 01 86 06 |.|. EQUD &0....| 00000370 20 3b 0d 01 90 10 20 2e 62 61 64 73 65 72 76 69 | ;.... .badservi| 00000380 63 65 0d 01 9a 39 20 20 3b 54 68 65 20 6e 75 6d |ce...9 ;The num| 00000390 62 65 72 20 62 65 6c 6f 77 20 69 73 20 66 6f 72 |ber below is for| 000003a0 20 53 65 72 76 69 63 65 5f 53 68 75 74 64 6f 77 | Service_Shutdow| 000003b0 6e 20 28 26 37 45 29 20 21 21 21 0d 01 a4 3b 20 |n (&7E) !!!...; | 000003c0 20 3b 49 74 20 69 73 20 63 61 75 73 65 64 20 62 | ;It is caused b| 000003d0 79 20 74 68 65 20 52 41 4d 46 53 46 69 6c 65 72 |y the RAMFSFiler| 000003e0 20 6d 6f 64 75 6c 65 2e 20 20 41 63 6f 72 6e 20 | module. Acorn | 000003f0 70 6c 65 61 73 65 0d 01 ae 3b 20 20 3b 72 65 6d |please...; ;rem| 00000400 65 6d 62 65 72 20 79 6f 75 20 6d 75 73 74 20 70 |ember you must p| 00000410 72 65 73 65 72 76 65 20 52 31 20 64 75 72 69 6e |reserve R1 durin| 00000420 67 20 61 20 73 65 72 76 69 63 65 20 63 61 6c 6c |g a service call| 00000430 21 0d 01 b8 07 20 20 3b 0d 01 c2 13 20 20 45 51 |!.... ;.... EQ| 00000440 55 44 20 26 33 39 32 38 42 38 34 0d 01 cc 06 20 |UD &3928B84.... | 00000450 3b 0d 01 d6 0a 20 2e 69 6e 69 74 0d 01 e0 3e 20 |;.... .init...> | 00000460 20 53 54 4d 44 42 20 52 31 33 21 2c 7b 52 30 2d | STMDB R13!,{R0-| 00000470 52 35 2c 52 31 32 2c 52 31 34 7d 20 20 20 20 20 |R5,R12,R14} | 00000480 20 20 20 20 20 20 20 20 20 3b 53 74 6f 72 65 20 | ;Store | 00000490 72 65 67 69 73 74 65 72 73 0d 01 ea 3d 20 20 4d |registers...= M| 000004a0 4f 56 20 52 30 2c 23 26 31 32 20 20 20 20 20 20 |OV R0,#&12 | 000004b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000004c0 20 20 20 20 20 20 20 3b 52 65 61 73 6f 6e 20 63 | ;Reason c| 000004d0 6f 64 65 20 31 38 0d 01 f4 45 20 20 41 44 52 20 |ode 18...E ADR | 000004e0 52 31 2c 74 61 73 6b 6d 61 6e 61 67 65 72 20 20 |R1,taskmanager | 000004f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000500 20 20 20 20 3b 50 6f 69 6e 74 65 72 20 74 6f 20 | ;Pointer to | 00000510 6d 6f 64 75 6c 65 20 6e 61 6d 65 0d 01 fe 42 20 |module name...B | 00000520 20 53 57 49 20 22 58 4f 53 5f 4d 6f 64 75 6c 65 | SWI "XOS_Module| 00000530 22 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |" | 00000540 20 20 20 20 20 20 20 20 20 3b 45 78 74 72 61 63 | ;Extrac| 00000550 74 20 6d 6f 64 75 6c 65 20 69 6e 66 6f 0d 02 08 |t module info...| 00000560 07 20 20 3b 0d 02 12 37 20 20 4d 4f 56 56 43 20 |. ;...7 MOVVC | 00000570 52 30 2c 23 30 20 20 20 20 20 20 20 20 20 20 20 |R0,#0 | 00000580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000590 20 20 3b 43 6c 65 61 72 20 52 30 0d 02 1c 41 20 | ;Clear R0...A | 000005a0 20 4d 4f 56 56 43 20 52 31 2c 52 33 20 20 20 20 | MOVVC R1,R3 | 000005b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000005c0 20 20 20 20 20 20 20 20 20 3b 53 65 74 20 73 74 | ;Set st| 000005d0 61 72 74 20 70 6f 73 69 74 69 6f 6e 0d 02 26 40 |art position..&@| 000005e0 20 20 4c 44 52 56 43 20 52 32 2c 5b 52 31 2c 23 | LDRVC R2,[R1,#| 000005f0 2d 34 5d 20 20 20 20 20 20 20 20 20 20 20 20 20 |-4] | 00000600 20 20 20 20 20 20 20 20 20 20 3b 47 65 74 20 6d | ;Get m| 00000610 6f 64 75 6c 65 20 6c 65 6e 67 74 68 0d 02 30 3e |odule length..0>| 00000620 20 20 53 55 42 56 43 20 52 32 2c 52 32 2c 23 34 | SUBVC R2,R2,#4| 00000630 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000640 20 20 20 20 20 20 20 20 20 20 3b 53 75 62 74 72 | ;Subtr| 00000650 61 63 74 20 31 20 77 6f 72 64 0d 02 3a 3f 20 20 |act 1 word..:? | 00000660 41 44 44 56 43 20 52 32 2c 52 32 2c 52 31 20 20 |ADDVC R2,R2,R1 | 00000670 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000680 20 20 20 20 20 20 20 20 3b 53 65 74 20 65 6e 64 | ;Set end| 00000690 20 70 6f 73 69 74 69 6f 6e 0d 02 44 41 20 20 4d | position..DA M| 000006a0 4f 56 56 43 20 52 33 2c 23 31 20 20 20 20 20 20 |OVVC R3,#1 | 000006b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000006c0 20 20 20 20 20 20 20 3b 53 65 74 20 69 6e 63 72 | ;Set incr| 000006d0 65 6d 65 6e 74 20 74 6f 20 31 0d 02 4e 3a 20 20 |ement to 1..N: | 000006e0 53 57 49 56 43 20 22 58 4f 53 5f 43 52 43 22 20 |SWIVC "XOS_CRC" | 000006f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000700 20 20 20 20 20 20 20 20 3b 50 65 72 66 6f 72 6d | ;Perform| 00000710 20 43 52 43 0d 02 58 49 20 4c 44 4d 56 53 49 41 | CRC..XI LDMVSIA| 00000720 20 52 31 33 21 2c 7b 52 30 2d 52 35 2c 52 31 32 | R13!,{R0-R5,R12| 00000730 2c 50 43 7d 20 20 20 20 20 20 20 20 20 20 20 20 |,PC} | 00000740 20 20 3b 4f 6e 20 65 72 72 6f 72 2c 20 72 65 6c | ;On error, rel| 00000750 6f 61 64 20 72 65 67 69 73 74 65 72 73 0d 02 62 |oad registers..b| 00000760 07 20 20 3b 0d 02 6c 38 20 20 53 54 52 20 52 30 |. ;..l8 STR R0| 00000770 2c 63 72 63 20 20 20 20 20 20 20 20 20 20 20 20 |,crc | 00000780 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000790 20 20 3b 53 74 6f 72 65 20 43 52 43 0d 02 76 3f | ;Store CRC..v?| 000007a0 20 4c 44 4d 49 41 20 52 31 33 21 2c 7b 52 30 2d | LDMIA R13!,{R0-| 000007b0 52 35 2c 52 31 32 2c 50 43 7d 20 20 20 20 20 20 |R5,R12,PC} | 000007c0 20 20 20 20 20 20 20 20 20 20 3b 52 65 6c 6f 61 | ;Reloa| 000007d0 64 20 72 65 67 69 73 74 65 72 73 0d 02 80 06 20 |d registers.... | 000007e0 3b 0d 02 8a 0d 20 2e 73 65 72 76 69 63 65 0d 02 |;.... .service..| 000007f0 94 3e 20 20 53 54 4d 44 42 20 52 31 33 21 2c 7b |.> STMDB R13!,{| 00000800 52 30 2c 52 31 32 2c 52 31 34 7d 20 20 20 20 20 |R0,R12,R14} | 00000810 20 20 20 20 20 20 20 20 20 20 20 20 3b 53 74 6f | ;Sto| 00000820 72 65 20 72 65 67 69 73 74 65 72 73 0d 02 9e 46 |re registers...F| 00000830 20 20 54 45 51 20 52 31 2c 23 26 37 45 20 20 20 | TEQ R1,#&7E | 00000840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000850 20 20 20 20 20 20 20 20 20 20 3b 49 73 20 69 74 | ;Is it| 00000860 20 44 65 73 6b 74 6f 70 5f 53 68 75 74 44 6f 77 | Desktop_ShutDow| 00000870 6e 3f 0d 02 a8 48 20 20 4c 44 52 4e 45 20 52 30 |n?...H LDRNE R0| 00000880 2c 62 61 64 73 65 72 76 69 63 65 20 20 20 20 20 |,badservice | 00000890 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000008a0 3b 49 66 20 6e 6f 2c 20 4c 6f 61 64 20 27 62 61 |;If no, Load 'ba| 000008b0 64 20 73 65 72 76 69 63 65 27 0d 02 b2 42 20 20 |d service'...B | 000008c0 54 45 51 4e 45 20 52 31 2c 52 30 20 20 20 20 20 |TEQNE R1,R0 | 000008d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000008e0 20 20 20 20 20 20 20 20 3b 49 73 20 69 74 20 27 | ;Is it '| 000008f0 62 61 64 20 73 65 72 76 69 63 65 27 0d 02 bc 46 |bad service'...F| 00000900 20 4c 44 4d 4e 45 49 41 20 52 31 33 21 2c 7b 52 | LDMNEIA R13!,{R| 00000910 30 2c 52 31 32 2c 50 43 7d 20 20 20 20 20 20 20 |0,R12,PC} | 00000920 20 20 20 20 20 20 20 20 20 20 3b 49 66 20 6e 6f | ;If no| 00000930 2c 20 72 65 6c 6f 61 64 20 72 65 67 69 73 74 65 |, reload registe| 00000940 72 73 0d 02 c6 07 20 20 3b 0d 02 d0 37 20 20 4c |rs.... ;...7 L| 00000950 44 52 20 52 30 2c 63 72 63 20 20 20 20 20 20 20 |DR R0,crc | 00000960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000970 20 20 20 20 20 20 20 3b 4c 6f 61 64 20 43 52 43 | ;Load CRC| 00000980 0d 02 da 3c 20 20 4c 44 52 20 52 31 2c 63 68 65 |...< LDR R1,che| 00000990 63 6b 73 75 6d 20 20 20 20 20 20 20 20 20 20 20 |cksum | 000009a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 4c | ;L| 000009b0 6f 61 64 20 63 68 65 63 6b 73 75 6d 0d 02 e4 3e |oad checksum...>| 000009c0 20 20 43 4d 50 20 52 30 2c 52 31 20 20 20 20 20 | CMP R0,R1 | 000009d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000009e0 20 20 20 20 20 20 20 20 20 20 3b 41 72 65 20 74 | ;Are t| 000009f0 68 65 79 20 65 71 75 61 6c 3f 0d 02 ee 46 20 4c |hey equal?...F L| 00000a00 44 4d 4e 45 49 41 20 52 31 33 21 2c 7b 52 30 2c |DMNEIA R13!,{R0,| 00000a10 52 31 32 2c 50 43 7d 20 20 20 20 20 20 20 20 20 |R12,PC} | 00000a20 20 20 20 20 20 20 20 20 3b 49 66 20 6e 6f 2c 20 | ;If no, | 00000a30 72 65 6c 6f 61 64 20 72 65 67 69 73 74 65 72 73 |reload registers| 00000a40 0d 02 f8 07 20 20 3b 0d 03 02 3d 20 20 4d 4f 56 |.... ;...= MOV| 00000a50 20 52 30 2c 23 26 31 36 20 20 20 20 20 20 20 20 | R0,#&16 | 00000a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000a70 20 20 20 20 20 3b 52 65 61 73 6f 6e 20 63 6f 64 | ;Reason cod| 00000a80 65 20 32 32 0d 03 0c 3e 20 20 53 57 49 20 22 4f |e 22...> SWI "O| 00000a90 53 5f 46 53 43 6f 6e 74 72 6f 6c 22 20 20 20 20 |S_FSControl" | 00000aa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000ab0 20 20 3b 43 6c 6f 73 65 20 61 6c 6c 20 66 69 6c | ;Close all fil| 00000ac0 65 73 0d 03 16 48 20 20 4d 4f 56 20 52 31 2c 23 |es...H MOV R1,#| 00000ad0 26 37 45 20 20 20 20 20 20 20 20 20 20 20 20 20 |&7E | 00000ae0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000af0 3b 43 6f 72 72 65 63 74 20 27 62 61 64 20 73 65 |;Correct 'bad se| 00000b00 72 76 69 63 65 20 62 75 67 27 0d 03 20 3f 20 4c |rvice bug'.. ? L| 00000b10 44 4d 49 41 20 52 31 33 21 2c 7b 52 30 2c 52 31 |DMIA R13!,{R0,R1| 00000b20 32 2c 50 43 7d 20 20 20 20 20 20 20 20 20 20 20 |2,PC} | 00000b30 20 20 20 20 20 20 20 20 3b 52 65 6c 6f 61 64 20 | ;Reload | 00000b40 72 65 67 69 73 74 65 72 73 0d 03 2a 06 20 5d 0d |registers..*. ].| 00000b50 03 34 05 ed 0d 03 3e 05 3a 0d 03 48 29 ff 28 22 |.4....>.:..H).("| 00000b60 53 61 76 65 20 53 68 75 74 55 74 69 6c 73 20 22 |Save ShutUtils "| 00000b70 2b c3 7e 63 6f 64 65 25 2b 22 20 22 2b c3 7e 4f |+.~code%+" "+.~O| 00000b80 25 29 0d 03 52 21 ff 28 22 53 65 74 54 79 70 65 |%)..R!.("SetType| 00000b90 20 53 68 75 74 55 74 69 6c 73 20 4d 6f 64 75 6c | ShutUtils Modul| 00000ba0 65 22 29 0d ff |e")..| 00000ba5