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.

Section 9<br />

FDASC$–Fieldata/ASCII Data<br />

Conversion<br />

The Fieldata/ASCII conversion routine performs the following character string<br />

conversions:<br />

• Converts Fieldata strings to ASCII (see 9.1.1).<br />

• Converts ASCII strings to Fieldata (see 9.1.2).<br />

The Fieldata/ASCII conversion routine consists of the following two elements:<br />

• FDASC$<br />

− Converts the characters from the input string one word at a time and places<br />

them into the output string.<br />

− Space-fills the last word converted out to a word boundary. If the last word is all<br />

spaces after the space filling, then the length of the output string is decreased<br />

by one word.<br />

− Is reentrant and does not assume quarter/third-word mode.<br />

− Is a relocatable element in the file SYS$LIB$*<strong>SYSLIB</strong> and also collected in the<br />

<strong>SYSLIB</strong> common bank <strong>SYSLIB</strong>$3. The relocatable and common bank entry<br />

points for FDASC$ are listed in Appendix E.<br />

− May be called from MASM programs.<br />

• TABLE$<br />

Contains the conversion codes for Fieldata and ASCII characters.<br />

9.1. MASM Interface<br />

The calling program may call FDASC$ as a relocatable element, a common bank<br />

element, or a common bank element with the Auto Switch method.<br />

9.1.1. Fieldata to ASCII Conversion<br />

FDASC$ converts Fieldata character strings to ASCII when the FDASC$ entry point is<br />

called. The following table lists the calling sequences.<br />

7833 1733–004 9–1

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

Saved successfully!

Ooh no, something went wrong!