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.

ID$–Identification Line Routine<br />

Execution date and time<br />

ID$ uses the current date and time unless a date and time are in the ID$ packet.<br />

(This should be the contents of R2 at load time.) Two formats are available: default is<br />

"CCYY mmm DD ddd HHMM:SS", or optionally "YYMMDD HHMM:SS". The date<br />

and time are separated from the last character of the creation date/time (or<br />

description if creation date/time is excluded) by one space.<br />

See SFDT$ routine comments for further details on the date/time formats.<br />

The calling program can format ID$ output for 80 characters per line (demand) or 132<br />

characters per line (batch or breakpointed-demand). If the length of the output exceeds<br />

the maximum character length of a line, the remainder is continued on the following line.<br />

If the creation date/time or execution date/time does not fit on one line, they are placed<br />

entirely on the next line (there is no wraparound for date/time).<br />

Sample displays of an ASCII string generated by ID$.<br />

1. MASM 3R1T1 (800827 1448:46) 1983 Sep 10 Sat 1651:18<br />

2. FURPUR 28R3 File Utility Routine/Program File Utility Routine<br />

(820312 1356:02) 1984 May 11 Fri 1017:24<br />

11.1. MASM Interface<br />

The ID$ routine may be called directly from MASM programs. Subsection 11.3<br />

describes the ID$ packet format and the MASM PROC I$DPKT that generates the<br />

packet. Subsection 11.1.2 describes the calling sequence for ID$, the MASM PROC<br />

I$D$ to call ID$, and the MASM PROC I$DPRINT to print the output.<br />

11.1.1. Packet<br />

The calling program must provide ID$ with an 11-word (or more) packet. The ID$ packet<br />

format is described in 11.3, and the PROC to generate the ID$ packet is described<br />

below.<br />

The MASM PROC I$DPKT generates the packet for the ID$ routine.<br />

Calling Format<br />

label I$DPKT {idlen | idbuf | ‘bufname’} {hdrlen | hdrbuf | ‘string’} optbits<br />

11–2 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!