Binyamin Dissen wrote:
> On Fri, 22 Jun 2007 01:35:53 -0700 Karan <maranmeetsu@[EMAIL PROTECTED]
> wrote:
>
> :>Can any one give me the source for macros in assembler with examples?
>
> Look at SYS1.MACLIB - many examples.
Nearly all of which are completely incomprehensible to beginners, since
they deal with creating and accessing arcane control blocks.
In practice, this has always been something you just have to learn on
your own. You might want to start with a few useful utilities. Among
those I created were one to create a series of EQUs of R00 to 0, R01 to
1, etc, to make registers turn up in cross-references (you can use a
GBLB here to detect when it's been called twice), and to create
PL/I-style (that would be LE-style now) prologues and epilogues. You can
also create customized modules. For example, I wrote a large macro to
provide, in essence, a QPAM access method, generating from the single
macro source nine different running versions, for Input, Output, and
Update-in-place, each for RECFM=F, V, and U.
--
John W. Kennedy
"Give up vows and dogmas, and fixed things, and you may grow like That.
....you may come to think a blow bad, because it hurts, and not because
it humiliates. You may come to think murder wrong, because it is
violent, and not because it is unjust."
-- G. K. Chesterton. "The Ball and the Cross"


|