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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.2. PLUS Interface<br />

CONWRD$–Condition Word Routine<br />

CONWRD$ is called from PLUS routines by declaring procedures with the appropriate<br />

entry points.<br />

Calling Sequence<br />

The following entry points are defined for CONWRD$:<br />

CWSET$<br />

Call the relocatable version of CONWRD$ and set bit 8 of the condition word; if bit 8<br />

is already set, then set bit 7 (bit 0 is the leftmost bit of the word).<br />

CWCLEAR$<br />

Call the relocatable version of CONWRD$ and clear bit 8 of the condition word; bit 7<br />

is not changed.<br />

CBCWSET$<br />

Call the common bank version of CONWRD$ and set bit 8 of the condition word; if<br />

bit 8 is already set, then set bit 7.<br />

CBCWCLEAR$<br />

Call the common bank version of CONWRD$ and clear bit 8 of the condition word;<br />

bit 7 is not changed.<br />

Example<br />

The following example calls CONWRD$ from a PLUS routine:<br />

1. PROCEDURE SET_TASK_ERROR IMPORTED (‘CWSET$’);<br />

2. PROCEDURE CLEAR_TASK_ERROR IMPORTED (‘CBCWCLEAR$’);<br />

.<br />

.<br />

.<br />

3. SET_TASK_ERROR; " Set bit 8 of Condition Word<br />

.<br />

.<br />

4. CLEAR_TASK_ERROR; " Clear bit 8<br />

In this example, line 1 declares a procedure to call the relocatable version of CONWRD$<br />

and set bit 8 of the condition word. Line 2 declares a procedure to call the common<br />

bank version of CONWRD$ and clear bit 8 of the condition word. Lines 3 and 4 execute<br />

the calls to CONWRD$ to manipulate the condition word.<br />

7833 1733–004 7–3

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

Saved successfully!

Ooh no, something went wrong!