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.

AEDIT$–ASCII Image Composition Editing Package<br />

Example 2<br />

LINELEN $EQU 33 . Length of ASCII data area<br />

$(4)<br />

LINE $RES LINELEN . Data area for ASCII image<br />

PACKET A$EDITPK LINELEN,LINE ‘DFT’,2 ‘TFT’, 3 . AEDIT$ packet<br />

In example 2, the MASM procedure A$EDITPKT generates the AEDIT$ packet for ASCII<br />

editing with date and time formats. AEDIT$ stores the generated ASCII string in the 33word<br />

data area at location LINE. AEDIT$ uses date format index 2 and time format<br />

index 3. AEDIT$ uses the default values for the msg, fps, fpr, dpc, spc, and separatorcharacter<br />

parameters.<br />

Example 3<br />

BUFLEN $EQU 8 . Length of buffer for f-p number<br />

$(2)<br />

FPNUM $RES BUFLEN . Buffer for floating-point number<br />

FPPKT A$EDITP BUFLEN,FPNUM ‘FPR’,0 ‘DPC’,’D’ . AEDIT$ packet<br />

In example 3, the MASM procedure A$EDITPKT generates the AEDIT$ packet at location<br />

FPPKT. AEDIT$ stores the generated ASCII strings in the eight-word buffer at location<br />

FPNUM. AEDIT$ does not round floating-point numbers and uses a separator character<br />

of 'D'. AEDIT$ uses the default values for the msg, fps, spc, date-format, time-format,<br />

and separator-character parameters.<br />

4.2. Calling Sequence<br />

There are several categories of AEDIT$ routines.<br />

• General-purpose editing routines (see 4.2.1)<br />

• Floating-point editing routines (see 4.2.2)<br />

• Time and date editing routines (see 4.2.3)<br />

• System standard format date and time editing routines (see 4.2.4)<br />

The calling program calls the AEDIT$ routines with MASM PROCs from the element<br />

AEDIT$P. Each routine has a corresponding PROC. The PROCs can call either the<br />

relocatable or common bank version of AEDIT$. The relocatable version is called with an<br />

LMJ on X11 to the relocatable entry point. The common bank version is called with an<br />

IBJ$ on X11 to the common bank entry point or an LMJ on X11 to the common bank<br />

entry point if the Auto Switch method is used.<br />

4–6 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!