home *** CD-ROM | disk | FTP | other *** search
- ; ************ 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
-