home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!decwrl!simpact!mvb.saic.com!macro32
- From: CORDELKJ@UCBEH.SAN.UC.EDU
- Newsgroups: vmsnet.internals
- Subject: Help on image checking macro using wildcards
- Message-ID: <01GNJ1BM4UZQ8WXWVA@UCBEH.SAN.UC.EDU>
- Date: 13 Aug 92 14:45:06 GMT
- Organization: Macro32<==>Vmsnet.Internals Gateway
- Lines: 51
- X-Gateway-Source-Info: Mailing List
-
- I could use some help in modifying a macro program. I am learning macro by
- doing here. I have a Watchdog program that is written in macro, and what I
- would like to do is perform a $forcex before doing a $delprc in order to
- have the image exit normally. There is a portion of the program that does
- checking for running of the same image (as it stores this info) when checking
- the processes. My question is, in the following routine can I use wildcards?
-
- ;++
- ; Check for protected image
- ;
- ; Delete following 3 lines to remove protected image checking
- ;--
- cmpc5 imagname, imagname_buf, #^A/ /, -
- protected_image, @<dsc$a_pointer+protected_image>
- beql update
-
-
- Where the image that I would want to check with wildcards would be the
- protected_image. The program (that I want to check) is broken up into
- several modules, but are all prefixed with the same name as in
-
- Dua2:[disk$directory]AAAmodule1.exe
- Dua2:[disk$directory]AAAmodule2.exe
- Dua2:[disk$directory]AAAmodule2.exe
-
- So I would want to check for dua2:[disk$directory]AAA*.exe (or AAA*.*)
-
- If this is needed... this is how the imagename is stored in the program:
-
- .word 128, jpi$_imagname ; image name
- .address imagname_buf
- .address imagname
-
- And the protected_image is:
-
- protected_image:
- .ascid / /
- .align long
-
- Also, as a side question, what is the extact difference between the
- branching instructions brb and brw as in when would you use the byte
- and when the word, and what advantage is the one over the other.
-
- Thanks in advance
- kevin
- <--------------------------------------------------------------------------->
- < Kevin J. Cordell Internet:Cordelkj@ucbeh.san.uc.edu >
- < Systems Manager :Cordelkj@ucunix.san.uc.edu >
- < EG&G Frequency Products >
- < Cincinnati, Ohio Voice: (513) 542-5555 >
- <--------------------------------------------------------------------------->
-