Home » Archimedes archive » Acorn Computing » 1994 02 subscription disc.adf » 9402s » PD/TaskEnsure/s/module
PD/TaskEnsure/s/module
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 Computing » 1994 02 subscription disc.adf » 9402s |
Filename: | PD/TaskEnsure/s/module |
Read OK: | ✔ |
File size: | 0526 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
; ************ TaskEnsure module wrapper ; Project title: TaskEnsure ; Purpose: Ensure a WIMP task is present ; File name: s.module ; Last modified: 11/8/93 ; Author: Ben Summers ; Version: 0.00 ; Dependancies: s.taskensure GET "h.regdefs" GET "adfs::Ben.$.DDE.date.asmdate" XOS_Module EQU &2001E GBLS version version SETS "0.00 " module EQU 1 ms DCD start - ms DCD 0 ; init DCD 0 ; final DCD 0 ; service DCD title - ms DCD help - ms DCD command_table - ms DCD 0 ; SWI base title DCB "TaskEnsure",0 help DCB "TaskEnsure",9,version,module_date," � Ben Summers 1993",0 ALIGN command_table DCB "TaskEnsure",0 ALIGN DCD start_code - ms DCB 0,0,255,0 DCD 0,start_help - ms DCB 0 ALIGN start_help DCB "*TaskEnsure checks to see if a WIMP task is present, and executes a command if it is/is not present.",13 DCB "If the -p flag is in the command, the command will be excuted if the task IS present.",13 DCB "Enclose the task name in ",34,"s if the task name contains a space. Task name matching is case sensitive.",13 DCB "Syntax: TaskEnsure [-p] <task name> <command to execute>",0 start_code STMFD R13!,{R14} MOV R2,R0 MOV R0,#2 ADR R1,title SWI XOS_Module LDMFD R13!,{PC}^ start MOV R12,#&8000 GET "s.taskensure" END
00000000 20 20 3b 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a | ; ************| 00000010 20 54 61 73 6b 45 6e 73 75 72 65 20 6d 6f 64 75 | TaskEnsure modu| 00000020 6c 65 20 77 72 61 70 70 65 72 0a 0a 20 20 3b 20 |le wrapper.. ; | 00000030 50 72 6f 6a 65 63 74 20 74 69 74 6c 65 3a 20 54 |Project title: T| 00000040 61 73 6b 45 6e 73 75 72 65 0a 20 20 3b 20 50 75 |askEnsure. ; Pu| 00000050 72 70 6f 73 65 3a 20 20 20 20 20 20 20 45 6e 73 |rpose: Ens| 00000060 75 72 65 20 61 20 57 49 4d 50 20 74 61 73 6b 20 |ure a WIMP task | 00000070 69 73 20 70 72 65 73 65 6e 74 0a 20 20 3b 20 46 |is present. ; F| 00000080 69 6c 65 20 6e 61 6d 65 3a 20 20 20 20 20 73 2e |ile name: s.| 00000090 6d 6f 64 75 6c 65 0a 20 20 3b 20 4c 61 73 74 20 |module. ; Last | 000000a0 6d 6f 64 69 66 69 65 64 3a 20 31 31 2f 38 2f 39 |modified: 11/8/9| 000000b0 33 0a 20 20 3b 20 41 75 74 68 6f 72 3a 20 20 20 |3. ; Author: | 000000c0 20 20 20 20 20 42 65 6e 20 53 75 6d 6d 65 72 73 | Ben Summers| 000000d0 0a 20 20 3b 20 56 65 72 73 69 6f 6e 3a 20 20 20 |. ; Version: | 000000e0 20 20 20 20 30 2e 30 30 0a 20 20 3b 20 44 65 70 | 0.00. ; Dep| 000000f0 65 6e 64 61 6e 63 69 65 73 3a 20 20 73 2e 74 61 |endancies: s.ta| 00000100 73 6b 65 6e 73 75 72 65 0a 0a 20 47 45 54 20 22 |skensure.. GET "| 00000110 68 2e 72 65 67 64 65 66 73 22 0a 20 47 45 54 20 |h.regdefs". GET | 00000120 22 61 64 66 73 3a 3a 42 65 6e 2e 24 2e 44 44 45 |"adfs::Ben.$.DDE| 00000130 2e 64 61 74 65 2e 61 73 6d 64 61 74 65 22 0a 0a |.date.asmdate"..| 00000140 58 4f 53 5f 4d 6f 64 75 6c 65 20 45 51 55 20 26 |XOS_Module EQU &| 00000150 32 30 30 31 45 0a 0a 20 47 42 4c 53 20 76 65 72 |2001E.. GBLS ver| 00000160 73 69 6f 6e 0a 76 65 72 73 69 6f 6e 20 53 45 54 |sion.version SET| 00000170 53 20 22 30 2e 30 30 20 22 0a 0a 6d 6f 64 75 6c |S "0.00 "..modul| 00000180 65 20 45 51 55 20 31 0a 0a 6d 73 0a 20 44 43 44 |e EQU 1..ms. DCD| 00000190 20 73 74 61 72 74 20 2d 20 6d 73 0a 20 44 43 44 | start - ms. DCD| 000001a0 20 30 20 20 20 3b 20 69 6e 69 74 0a 20 44 43 44 | 0 ; init. DCD| 000001b0 20 30 20 20 20 3b 20 66 69 6e 61 6c 0a 20 44 43 | 0 ; final. DC| 000001c0 44 20 30 20 20 20 3b 20 73 65 72 76 69 63 65 0a |D 0 ; service.| 000001d0 20 44 43 44 20 74 69 74 6c 65 20 2d 20 6d 73 0a | DCD title - ms.| 000001e0 20 44 43 44 20 68 65 6c 70 20 2d 20 6d 73 0a 20 | DCD help - ms. | 000001f0 44 43 44 20 63 6f 6d 6d 61 6e 64 5f 74 61 62 6c |DCD command_tabl| 00000200 65 20 2d 20 6d 73 0a 20 44 43 44 20 30 20 20 20 |e - ms. DCD 0 | 00000210 3b 20 53 57 49 20 62 61 73 65 0a 0a 74 69 74 6c |; SWI base..titl| 00000220 65 0a 20 44 43 42 20 22 54 61 73 6b 45 6e 73 75 |e. DCB "TaskEnsu| 00000230 72 65 22 2c 30 0a 0a 68 65 6c 70 0a 20 44 43 42 |re",0..help. DCB| 00000240 20 22 54 61 73 6b 45 6e 73 75 72 65 22 2c 39 2c | "TaskEnsure",9,| 00000250 76 65 72 73 69 6f 6e 2c 6d 6f 64 75 6c 65 5f 64 |version,module_d| 00000260 61 74 65 2c 22 20 a9 20 42 65 6e 20 53 75 6d 6d |ate," . Ben Summ| 00000270 65 72 73 20 31 39 39 33 22 2c 30 0a 20 41 4c 49 |ers 1993",0. ALI| 00000280 47 4e 0a 0a 63 6f 6d 6d 61 6e 64 5f 74 61 62 6c |GN..command_tabl| 00000290 65 0a 20 44 43 42 20 22 54 61 73 6b 45 6e 73 75 |e. DCB "TaskEnsu| 000002a0 72 65 22 2c 30 0a 20 41 4c 49 47 4e 0a 20 44 43 |re",0. ALIGN. DC| 000002b0 44 20 73 74 61 72 74 5f 63 6f 64 65 20 2d 20 6d |D start_code - m| 000002c0 73 0a 20 44 43 42 20 30 2c 30 2c 32 35 35 2c 30 |s. DCB 0,0,255,0| 000002d0 0a 20 44 43 44 20 30 2c 73 74 61 72 74 5f 68 65 |. DCD 0,start_he| 000002e0 6c 70 20 2d 20 6d 73 0a 20 44 43 42 20 30 0a 20 |lp - ms. DCB 0. | 000002f0 41 4c 49 47 4e 0a 0a 73 74 61 72 74 5f 68 65 6c |ALIGN..start_hel| 00000300 70 0a 20 44 43 42 20 22 2a 54 61 73 6b 45 6e 73 |p. DCB "*TaskEns| 00000310 75 72 65 20 63 68 65 63 6b 73 20 74 6f 20 73 65 |ure checks to se| 00000320 65 20 69 66 20 61 20 57 49 4d 50 20 74 61 73 6b |e if a WIMP task| 00000330 20 69 73 20 70 72 65 73 65 6e 74 2c 20 61 6e 64 | is present, and| 00000340 20 65 78 65 63 75 74 65 73 20 61 20 63 6f 6d 6d | executes a comm| 00000350 61 6e 64 20 69 66 20 69 74 20 69 73 2f 69 73 20 |and if it is/is | 00000360 6e 6f 74 20 70 72 65 73 65 6e 74 2e 22 2c 31 33 |not present.",13| 00000370 0a 20 44 43 42 20 22 49 66 20 74 68 65 20 2d 70 |. DCB "If the -p| 00000380 20 66 6c 61 67 20 69 73 20 69 6e 20 74 68 65 20 | flag is in the | 00000390 63 6f 6d 6d 61 6e 64 2c 20 74 68 65 20 63 6f 6d |command, the com| 000003a0 6d 61 6e 64 20 77 69 6c 6c 20 62 65 20 65 78 63 |mand will be exc| 000003b0 75 74 65 64 20 69 66 20 74 68 65 20 74 61 73 6b |uted if the task| 000003c0 20 49 53 20 70 72 65 73 65 6e 74 2e 22 2c 31 33 | IS present.",13| 000003d0 0a 20 44 43 42 20 22 45 6e 63 6c 6f 73 65 20 74 |. DCB "Enclose t| 000003e0 68 65 20 74 61 73 6b 20 6e 61 6d 65 20 69 6e 20 |he task name in | 000003f0 22 2c 33 34 2c 22 73 20 69 66 20 74 68 65 20 74 |",34,"s if the t| 00000400 61 73 6b 20 6e 61 6d 65 20 63 6f 6e 74 61 69 6e |ask name contain| 00000410 73 20 61 20 73 70 61 63 65 2e 20 54 61 73 6b 20 |s a space. Task | 00000420 6e 61 6d 65 20 6d 61 74 63 68 69 6e 67 20 69 73 |name matching is| 00000430 20 63 61 73 65 20 73 65 6e 73 69 74 69 76 65 2e | case sensitive.| 00000440 22 2c 31 33 0a 20 44 43 42 20 22 53 79 6e 74 61 |",13. DCB "Synta| 00000450 78 3a 20 54 61 73 6b 45 6e 73 75 72 65 20 5b 2d |x: TaskEnsure [-| 00000460 70 5d 20 3c 74 61 73 6b 20 6e 61 6d 65 3e 20 3c |p] <task name> <| 00000470 63 6f 6d 6d 61 6e 64 20 74 6f 20 65 78 65 63 75 |command to execu| 00000480 74 65 3e 22 2c 30 0a 0a 73 74 61 72 74 5f 63 6f |te>",0..start_co| 00000490 64 65 0a 20 53 54 4d 46 44 20 52 31 33 21 2c 7b |de. STMFD R13!,{| 000004a0 52 31 34 7d 0a 20 4d 4f 56 20 20 20 52 32 2c 52 |R14}. MOV R2,R| 000004b0 30 0a 20 4d 4f 56 20 20 20 52 30 2c 23 32 0a 20 |0. MOV R0,#2. | 000004c0 41 44 52 20 20 20 52 31 2c 74 69 74 6c 65 0a 20 |ADR R1,title. | 000004d0 53 57 49 20 20 20 58 4f 53 5f 4d 6f 64 75 6c 65 |SWI XOS_Module| 000004e0 0a 20 4c 44 4d 46 44 20 52 31 33 21 2c 7b 50 43 |. LDMFD R13!,{PC| 000004f0 7d 5e 0a 0a 73 74 61 72 74 0a 20 4d 4f 56 20 20 |}^..start. MOV | 00000500 20 52 31 32 2c 23 26 38 30 30 30 0a 20 47 45 54 | R12,#&8000. GET| 00000510 20 22 73 2e 74 61 73 6b 65 6e 73 75 72 65 22 0a | "s.taskensure".| 00000520 0a 20 45 4e 44 0a |. END.| 00000526