18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PREPRM, PREPRO, PREPF$, and POSTPR$<br />

14.1.4.2. REPRM$–Reusable Processor Preprocessor Routine<br />

REPRM$ reads INFOR from the INFOR CLIST processor call statement; INFOR$ must<br />

be set to zero. The other functions of REPRM$ are the same as for PREPRM, except<br />

the reentry feature of REPRM.<br />

Initial Conditions<br />

The calling program must establish an INFOR CLIST. On completing SIR$, S4 of<br />

PARTBL+13 must be zero.<br />

PARTBL must be externally defined and at least 27 words long.<br />

Calling Sequence<br />

LA A0,expected-CLIST-index-or-zero<br />

LMJ X11,REPRM$<br />

absolute-eof return<br />

wrong-CLIST-index return<br />

error return<br />

normal return<br />

Returns<br />

error<br />

normal<br />

Identical to those for PREPRM$.<br />

absolute-eof<br />

Indicates that an EOF condition has been encountered that cannot be bypassed; that<br />

is, a nontransparent control statement or @ENDX was encountered. In that case,<br />

the processor cannot reuse itself and must terminate.<br />

wrong-CLIST-index<br />

Is optional for processors that have more than one item in their INFOR CLIST and<br />

only need to analyze one specific command automatically; this is specified by its<br />

CLIST index given in register A0 prior to calling REPRM$. This return is never taken<br />

if register A0 is zero on entry to REPRM$.<br />

After the wrong-CLIST-index return, X11 points to a reentry location when the<br />

preprocessor routine continues. (Note that the CLIST index is found in S3 of<br />

INFOR$+1.)<br />

Use the following instructions to reenter REPRM$:<br />

LMJ X11,0,X11<br />

error return<br />

normal return<br />

The two returns are the same as PREPRM$.<br />

7833 1733–004 14–9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!