VMS Help
MACRO, VAX MACRO Assembler, Examples

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    1.$ MACRO/LIST  CYGNUS, LYRA/OBJECT=LYRAN + MYLIB/LIBRARY

      In this example, the MACRO command requests two separate
      assemblies. Using MAR as the default file type, MACRO assembles
      CYGNUS.MAR to produce CYGNUS.LIS and CYGNUS.OBJ. Then it
      assembles LYRA.MAR and creates a listing file named LYRA.LIS
      and an object module named LYRAN.OBJ. The default output file
      type for a listing is LIS.

      The command requests the search of the MYLIB library file in
      the current directory for macro definitions.

    2.$ MACRO  ORION

      MACRO assembles the file ORION.MAR and creates an object file
      named ORION.OBJ. Executing the command in a batch job causes
      MACRO to create a listing file named ORION.LIS.

    3.$ MACRO  ALPHA/LIST+MYLIB/LIBRARY-
      _$ + [TEST]OLDLIB/LIBRARY + []BETA
      $ PRINT ALPHA

      MACRO concatenates the files ALPHA.MAR and BETA.MAR to produce
      an object file named ALPHA.OBJ and a listing file named
      ALPHA.LIS. The command line requests the search of libraries
      MYLIB.MLB (in the current default directory) and OLDLIB.MLB (in
      the directory [TEST]) for macro definitions. When macro calls
      are found in BETA.MAR, MACRO searches the libraries OLDLIB,
      MYLIB, and the system library STARLET.MLB, in that order, for
      the definitions.

      The PRINT command prints the listing file ALPHA.LIS.

    4.$ MACRO  DELTA+TESTLIB/LIBRARY, ALPHA+MYLIB/LIBRARY

      MACRO requests two separate assemblies. MACRO searches
      TESTLIB.MLB and the system library STARLET.MLB for macro
      definitions when macro calls are found in DELTA.MAR, and
      searches MYLIB.MLB and the system library STARLET.MLB for macro
      definitions when macro calls are found in ALPHA.MAR.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.