EDSUB.OBJ is a compiled disassembly of the $EDMSG SYSLIB routine as packaged with P/OS V2.0a. THe routine will also be familiar to RSX programmers. The only change is to the FEAT$ call (which is not available under RT-11); but the only effect of this is to always print file version numbers in decimal, not octal, when the %X format is used. Since RT-11 does not have version numbers anyway (unless one customizes it), this should not be a problem. P/OS V3.2 is public-domain and available for download at ftp.update.uu.se/pub/professional Briefly, $EDMSG formats output in the user's choice of various decimal, octal, Radix-50, ASCII, filename, date and other formats, specified by the percent (%) sign followed by an optional count and the letter for the desired format. Many examples of how to use $EDMSG can be found by dumping PIP.TSK (around block 43, depending on the version) e.g. in RSX or P/OS: $ DUMP/ASC/LOW/BL:43 PIP.TSK To use $EDMSG under RT-11, use the exact same calling sequence as in P/OS or RSX and then just .PRINT the .ASCIZ string that $EDMSG produces. Link your program as follows (MYPROG is your program): .LINK MYPROG,EDSUB or .R LINK *MYPROG=MYPROG,EDSUB ^C Example program: .mcall .print, .exit outbuf: .blkb 82. ; $EDMSG output goes here; make sure it's ; big enough for max. # chars printed fmt: .asciz /$EDMSG Test. Monitor base address is %P/ ; $EDMSG copies all text verbatim to ; output buffer except % formatters, which ; are replaced with formatted data from list list: .blkw 1 ; As many words as required for data list start: mov #outbuf,r0 mov #fmt,r1 mov #list,r2 mov @#54,@r2 jsr pc,$edmsg ; R0 <- next free char in outbuf, R1 <- length ; R2 destroyed, R3-R5 preserved. .print #outbuf ; Print the .ASCIZ string $EDMSG generated .exit .end start For more information on $EDMSG, log onto an RSX system and type HELP SYSLIB EDMSG at the MCR or DCL prompt. There is a public-access PDP-11 running RSX-11M+ at telnet://magica.update.uu.se (Use the "guest" account). RT-11 may be purchased from Mentec at http://www.mentec.com and a PDP-11 emulator for the PC may be found at ftp://ftp.dbit.com/pub/e11 Disclaimer: This software is provided for convenience only and is not warranted by anyone, nor is it supported by DEC or Mentec. P/OS V2.0a is Copyright 1984 by Digital Equipment Corporation but released into the public domain. Last update: 22-Mar-1998