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$EFD1 p1 LA A0,p1<br />

LMJ X11,AEFD1$<br />

A$EFD2 p1 DL A0,p1<br />

LMJ X11,AEFD2$<br />

A$EMSG p1 LA,U A0,p1<br />

LMJ X11,AEMSG$<br />

Description<br />

Insert one word of ASCII characters.<br />

The four characters in p1 are inserted into the image. ASCII<br />

spaces (040) and null characters (000) are ignored.<br />

Insert two words of ASCII characters.<br />

The eight characters in p1 are inserted into the data area.<br />

Blanks and null characters are ignored.<br />

Message editor initial entry.<br />

A$EMSGR LMJ X11,AEMSGR$ Message editor reentry.<br />

A$EOCTF<br />

p1,p2<br />

LA A0,p2<br />

LA,U A1,p1<br />

LMJ X11,AEOCTF$<br />

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

A$EPACK<br />

p1,p2<br />

LMJ X11,AEOCTV$<br />

LA,U A0,p2<br />

LA,U A1,p1<br />

LMJ X11,AEPACK$<br />

Copies the characters starting at the address given in p1 into<br />

the data area. This process stops when the character in Q1 of<br />

the sixth word of the packet (stop character) is found. The<br />

pointer to the string is saved in the packet.<br />

The string at address p1 must contain at least one stop<br />

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

may be supplied in H1 of register A0. The offset is in the<br />

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

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.<br />

This routine performs the same operation as AEMSG$ except<br />

that the pointer to the input string is taken from the packet.<br />

With these two routines, it is possible to copy a string into the<br />

data area, occasionally interrupting this process to perform<br />

other editing functions at certain selected points in the string.<br />

Edit an octal number (fixed length).<br />

Edits p2 to p1 octal digits. Leading zeros are not suppressed.<br />

P1 must not exceed 12.<br />

Edit an octal number (variable length).<br />

Edits contents of p1 to octal. The number of digits edited<br />

depends on the size of the number. If the number is greater<br />

than seven, a leading zero is added.<br />

Copy and pack a string.<br />

Same as A$ECOPY except that null (000) characters are<br />

ignored. A$QPACK removes the null (000) characters from the<br />

output string while A$ECOPY retains them. Null characters do<br />

not show up in the printed line.<br />

7833 1733–004 4–11

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

Saved successfully!

Ooh no, something went wrong!