        .title  attr
        $SSDEF
        $DSCDEF
        $LNMDEF
        .psect  $PDATA quad,pic,con,lcl,shr,noexe,nowrt
atrmsk: .long   0
tbldsc: .ascid  "LNM$FILE_DEV"
logdsc: .ascid  "MYLOGICAL"
itmlst: .word   256
        .word   LNM$_STRING
        .address trn
        .address trnlen
        .word   4
        .word   LNM$_ATTRIBUTES
        .address atr
        .long   0
        .long   0
dir:    .ascid  "!SL !AS !AS"
truedsc: .ascid  "True"
falsedsc: .ascid  "False"
        .psect  $LOCAL quad,pic,con,lcl,noshr,noexe,wrt
trndsc: .word  256
        .byte   DSC$K_DTYPE_T
        .byte   DSC$K_CLASS_S
        .address trn
trn:    .blkb   256
trnlen: .blkl   1
atr:    .blkl   1
resdsc:  .word  256
        .byte   DSC$K_DTYPE_T
        .byte   DSC$K_CLASS_S
        .address buf
buf:    .blkb   256
buflen: .blkl   1
        .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
        .entry  attr,^m<>
        pushal  itmlst
        pushl   #0
        pushal  logdsc
        pushal  tbldsc
        pushal  atrmsk
        calls   #5,G^SYS$TRNLNM
        movw    trnlen,trndsc
        bitl    #LNM$M_TERMINAL,atr
        beql    100$
        pushal  truedsc
        brb     200$
100$:   pushal  falsedsc
200$:   pushal  trndsc
        pushl   r0
        pushal  resdsc
        pushal  buflen
        pushal  dir
        calls   #6,G^LIB$SYS_FAO
        movw    buflen,resdsc
        pushal  resdsc
        calls   #1,G^LIB$PUT_OUTPUT
        movl    #SS$_NORMAL,r0
        ret
        .end    attr
