home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / vmsnet / internal / 1159 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.4 KB

  1. Path: sparky!uunet!olivea!decwrl!decwrl!simpact!mvb.saic.com!macro32
  2. From: CORDELKJ@UCBEH.SAN.UC.EDU
  3. Newsgroups: vmsnet.internals
  4. Subject: Help on image checking macro using wildcards
  5. Message-ID: <01GNJ1BM4UZQ8WXWVA@UCBEH.SAN.UC.EDU>
  6. Date: 13 Aug 92 14:45:06 GMT
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. Lines: 51
  9. X-Gateway-Source-Info: Mailing List
  10.  
  11. I could use some help in modifying a macro program.  I am learning macro by
  12. doing here.  I have a Watchdog program that is written in macro, and what I
  13. would like to do is perform a $forcex before doing a $delprc in order to
  14. have the image exit normally.  There is a portion of the program that does
  15. checking for running of the same image (as it stores this info) when checking
  16. the processes.   My question is, in the following routine can I use wildcards?
  17.  
  18. ;++
  19. ; Check for protected image
  20. ;
  21. ; Delete following 3 lines to remove protected image checking
  22. ;--
  23.         cmpc5   imagname, imagname_buf, #^A/ /, -
  24.                 protected_image, @<dsc$a_pointer+protected_image>
  25.         beql    update
  26.  
  27.  
  28. Where the image that I would want to check with wildcards would be the
  29. protected_image.  The program (that I want to check) is broken up into
  30. several modules, but are all prefixed with the same name as in
  31.  
  32. Dua2:[disk$directory]AAAmodule1.exe
  33. Dua2:[disk$directory]AAAmodule2.exe
  34. Dua2:[disk$directory]AAAmodule2.exe
  35.  
  36. So I would want to check for dua2:[disk$directory]AAA*.exe (or AAA*.*)
  37.  
  38. If this is needed... this is how the imagename is stored in the program:
  39.  
  40.         .word   128, jpi$_imagname      ; image name
  41.         .address imagname_buf
  42.         .address imagname
  43.  
  44. And the protected_image is:
  45.  
  46. protected_image:
  47.         .ascid  / /
  48.         .align  long
  49.  
  50. Also, as a side question, what is the extact difference between the
  51. branching instructions   brb and brw  as in when would you use the byte
  52. and when the word, and what advantage is the one over the other.
  53.  
  54. Thanks in advance
  55. kevin
  56. <--------------------------------------------------------------------------->
  57. < Kevin J. Cordell                      Internet:Cordelkj@ucbeh.san.uc.edu  >
  58. < Systems Manager                               :Cordelkj@ucunix.san.uc.edu >
  59. < EG&G Frequency Products                                                   >
  60. < Cincinnati, Ohio                          Voice: (513) 542-5555           >
  61. <--------------------------------------------------------------------------->
  62.