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.

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

Table 4–2. AEDIT$: General Purpose ASCII Editing Routines<br />

PROC Call Generated<br />

Instructions<br />

A$ECHAR p1 LA,XU A0,p1<br />

LMJ X11,AECHAR$<br />

Description<br />

Insert the character in p1 into the next position of the data<br />

area.<br />

The character contained in Q4 of A0 is inserted into the data<br />

area.<br />

A$ECLEAR LMJ X11,AECLEAR$ Clear the data area for the ASCII image.<br />

The data area is set to blanks and the column pointer is set to<br />

the start of the data area (column zero).<br />

A$ECOLN LMJ X11,AECOLN Compute the current column number.<br />

A$ECOL p1 LA,XU A0,p1<br />

A$ECOPY<br />

p1,p2<br />

A$EDCFZ<br />

p1,p2<br />

A$EDECF<br />

p1,p2<br />

LMJ X11,AECOL$<br />

LA,U A0,p2<br />

LA,U A1,p1<br />

LMJ X11,AECOPY$<br />

LA A0,p2<br />

LA,U A1,p1<br />

LMJ X11,AEDCFZ$<br />

LA A0,p2<br />

LA,U A1,p1<br />

LMJ X11,AEDECF$<br />

A$EDECV p1 LA A0,p1<br />

LMJ X11,AEDECV$<br />

Returns with the column number in A0.<br />

Position to the column specified in p1.<br />

The column pointer is changed to the number specified in p1.<br />

The first character position of the image is column 0.<br />

Copy a string into the data area.<br />

p2 is expected to contain the address of a string of characters.<br />

A character offset for the first word of the string may be<br />

supplied in H1 of register A0. The offset is in the range 0–3<br />

with 0=Q1, 1=Q2, 2=Q3, and 3=Q4 of the first word.<br />

If the character offset is supplied in H1 of register A0, then the<br />

PROC call should not be used. Instead, the calling sequence<br />

should be coded directly. The number of characters in p1 is<br />

copied from this area into the data area.<br />

Edit a decimal number (fixed length with leading zeros).<br />

Edit p2 to a decimal number right-justified in a field of p1<br />

characters. A leading "-" is added if p2 is negative. The result<br />

overflows the field to the right if it does not fit into the<br />

specified field size.<br />

Leading zeros are produced where AEDECF$ would produce<br />

leading spaces. This routine is convenient for editing decimal<br />

fractions.<br />

Edit a decimal number (fixed length).<br />

Edits p2 to a decimal number right-justified in a field of p1<br />

characters. A leading "--" is added if p2 is negative. The result<br />

overflows the field to the right if it does not fit into the<br />

specified field size.<br />

Edit a decimal number (variable length).<br />

Edits p1 to a decimal number. A leading "-" is added if p1 is<br />

negative. The number of characters generated is a function of<br />

the sign and magnitude of p1.<br />

4–10 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!