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.

CONWRD$–Condition Word Routine<br />

Parameters<br />

t<br />

func<br />

The type of call to CONWRD$. This parameter is optional and may be omitted. If CB<br />

or A is specified, it must be enclosed by apostrophes.<br />

blank<br />

'CB'<br />

'A'<br />

Call the relocatable version of CONWRD$. This is the default if t is omitted.<br />

Call the common bank version of CONWRD$.<br />

Call the common banked version of CONWRD$ using the Auto Switch method.<br />

The function for CONWRD$ to perform; it must be enclosed by apostrophes.<br />

'SET27$'<br />

Set bit 8 of the condition word; if bit 8 was already set, then set bit 7.<br />

'CLEAR27$'<br />

Clear bit 8 of the condition word; bit 7 is not changed.<br />

Note: The names SET27 and CLEAR27 may appear to be unusual names for these<br />

functions. The reason for this is that they were named when a different numbering<br />

convention for bit positions was being used. Bit position 27 in the old convention<br />

corresponds to bit position 8 in the current convention.<br />

Example<br />

The following example calls CONWRD$ from a MASM routine.<br />

1. $(1)<br />

2. START<br />

.<br />

.<br />

.<br />

3. C$ONWRD ‘SET27$’ . Set bit 8 of the condition word<br />

.<br />

.<br />

4. C$ONWRD,’CB’ ‘CLEAR27$’ . Clear bit 8<br />

In this example, line 3 calls the relocatable version of CONWRD$ to set bit 8 of the<br />

condition word. Line 4 calls the common bank version of CONWRD$ to clear bit 8 of the<br />

condition word.<br />

7–2 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!