home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / b / krterr.min < prev    next >
Text File  |  2020-01-01  |  4KB  |  194 lines

  1.     .title    KRTERR.MIN  Error code to message text translation
  2.     .ident    "V03.62"
  3.  
  4. ; /62/    31-May-93  Billy Youdelman
  5.  
  6. ;    Copyright 1984 Change Software, Inc.
  7.  
  8.     .include "IN:KRTMAC.MIN"
  9.     .iif ndf  KRTINC  .error    <; .include for IN:KRTMAC.MIN failed>
  10.  
  11.     .psect    $pdata
  12.     .sbttl    Error codes defined
  13.  
  14.     cmd$ab    ==    -1
  15.     cmd$ex    ==    -2
  16.     cmd$nx    ==    -3
  17.     cmd$bad    ==    -4
  18.     cmd$un    ==    -5
  19.     er$ful    ==    -6
  20.     er$nmf    ==    -7
  21.     er$iop    ==    -10
  22.     er$sys    ==    -11
  23.     er$lby    ==    -12
  24.     er$rer    ==    -13
  25.     er$wer    ==    -14
  26.     er$prv    ==    -15
  27.     er$rtb    ==    -16
  28.     er$que    ==    -17
  29.     er$nin    ==    -20
  30.     er$lgf    ==    -21
  31.     er$raw    ==    -22
  32.     er$rax    ==    -23
  33.     er$sy1    ==    -24
  34.     er$sy2    ==    -25
  35.     er$sy3    ==    -26
  36.     er$vol    ==    -27
  37.     er$nop    ==    -30
  38.     er$wld    ==    -31
  39.     er$bnl    ==    -32
  40.     er$one    ==    -33
  41.     fa$imp    ==    -34
  42.     fa$nhd    ==    -35
  43.     fa$dio    ==    -36
  44.     fa$ovr    ==    -37
  45.     fa$dfl    ==    -40
  46.     fa$adr    ==    -41
  47.     fa$lun    ==    -42
  48.     er$try    ==    -43
  49.     er$tim    ==    -44
  50.     ld$bsy    ==    -45
  51.     er$txp    ==    -46
  52.     er$bad    ==    -47
  53.     er$sam    ==    -50
  54.     er$sun    ==    -51
  55.     er$ass    ==    -52
  56.     er$unr    ==    -53
  57.     er$amb    ==    -54
  58.     er$snd    ==    -55
  59.     er$dk    ==    -56
  60.     er$tam    ==    -57
  61.     er$tun    ==    -60
  62.     er$ser    ==    -61
  63.     er$inr    ==    -62
  64.     er$oct    ==    -63
  65.     er$dev    ==    -64
  66.     er$eof    ==    -65
  67.     er$fnf    ==    -66
  68.     er$iln    ==    -67
  69.     er$aop    ==    -70
  70.     er$lwe    ==    -71
  71.     er$fnm    ==    -72
  72.     
  73.     maxerr    ==     72
  74.  
  75.  
  76.     .sbttl    Error messages mapped
  77.  
  78. errmap:    .word    baderr
  79.     .word    10$,20$,30$,40$,50$,60$,70$,100$,110$,120$
  80.     .word    130$,140$,150$,160$,170$,200$,230$,240$,250$
  81.     .word    300$,310$,320$,340$,350$,360$,400$,410$,440$
  82.     .word    450$,460$,500$,510$,520$,530$,560$,610$,620$
  83.     .word    630$,640$,650$,660$,700$,730$,740$,750$
  84.     .word    1000$,1010$,1020$,1030$,1060$,1300$,1310$
  85.     .word    1320$,1330$,1340$,1350$,1550$,1560$
  86.  
  87. 10$:
  88. 20$:
  89. 30$:
  90. 40$:
  91. 50$:    .asciz    "Error handling failed!"
  92. 60$:    .asciz    "Not enough room"
  93. 70$:    .asciz    "No more files"
  94. 100$:    .asciz    "Invalid I/O request"
  95. 110$:    .asciz    "System error"
  96. 120$:    .asciz    "Logical unit already open"
  97. 130$:    .asciz    "Device read error"
  98. 140$:    .asciz    "Device write error"
  99. 150$:    .asciz    "File is protected"
  100. 160$:    .asciz    "Record too long for GETREC buffer"
  101. 170$:    .asciz    "No queue element free"
  102. 200$:    .asciz    "No data available"
  103. 230$:    .asciz    "Please open a LOGFILE first"
  104. 240$:    .asciz    "Can't log RAW I/O with another disk_based DEBUG option set"
  105. 250$:    .asciz    "Can't do this with RAW I/O logging on"
  106. 300$:    .asciz    ".CLOSE system error"
  107. 310$:    .asciz    ".CSISPC system error"
  108. 320$:    .asciz    ".ENTER system error"
  109. 340$:    .asciz    "Disk home block not RT-11 format, see HELP SET FILE NOVOL"
  110. 350$:    .asciz    "I/O channel not open"
  111. 360$:    .asciz    "Multiple files or wildcarding not supported here"
  112. 400$:    .asciz    "Maximum of 31 entries in the BINARY_TYPE list"
  113. 410$:    .asciz    "Illegal file type string"
  114. 440$:    .asciz    "Unknown .SERR error"
  115. 450$:    .asciz    "No device handler or device not responding"
  116. 460$:    .asciz    "Directory I/O error"
  117. 500$:    .asciz    "Overlay read error"
  118. 510$:    .asciz    "Directory is full"
  119. 520$:    .asciz    "Invalid address"
  120. 530$:    .asciz    "Invalid channel"
  121. 560$:    .asciz    "Retries must be between 3 and 30"
  122. 610$:    .asciz    "Time_out must be between 0 and 94"
  123. 620$:    .asciz    "Channel open to a logical disk"
  124. 630$:    .asciz    "Minimum packet length is 20"
  125. 640$:    .asciz    "Bad option or value"
  126. 650$:    .asciz    "Ambiguous SET command"
  127. 660$:    .asciz    "Unrecognizable SET command"
  128. 700$:    .asciz    "Syntax is ASS dev DK, only DK is supported"
  129. 730$:    .asciz    "Unrecognizable command"
  130. 740$:    .asciz    "Ambiguous command"
  131. 750$:    .asciz    "Syntax is SEND file.typ [dev:][asfile.new]"
  132. 1000$:    .asciz    "The only supported logical assign is DK"
  133. 1010$:    .asciz    "Ambiguous topic"
  134. 1020$:    .asciz    "Unrecognizable topic"
  135. 1030$:    .asciz    "Server sub-commands are not supported"
  136. 1060$:    .asciz    "Invalid number of retries"
  137. 1300$:    .asciz    "Range is 1 to 36 octal"
  138. 1310$:    .asciz    "Device not responding"
  139. 1320$:    .asciz    "End of file"
  140. 1330$:    .asciz    "File not found"
  141. 1340$:    .asciz    "Illegal logical name"
  142. 1350$:    .asciz    "Ambiguous option or value"
  143. 1550$:    .asciz    "Logfile write error"
  144. 1560$:    .asciz    "Bad file name"
  145. baderr:    .asciz    "Unknown error  r0 = "
  146.     .even
  147.  
  148.  
  149.     .psect    $code
  150.     .sbttl    Error message generator
  151.  
  152. syserr::save    <r0,r1,r2>
  153.     mov    #baderr    ,r1
  154.     mov    2(r5)    ,r2
  155.  
  156.     movb    #'?    ,(r2)+
  157.     mov    #prompt    ,r0
  158. 1$:    movb    (r0)+    ,(r2)+
  159.     beq    2$
  160.     cmpb    -1(r2)    ,#'z!40
  161.     bhi    1$
  162.     cmpb    -1(r2)    ,#'a!40
  163.     blo    1$
  164.      bicb    #40    ,-1(r2)
  165.     br    1$
  166. 2$:    dec    r2
  167.     cmpb    -1(r2)    ,#'>
  168.     bne    3$
  169.     tstb    -(r2)
  170. 3$:    movb    #'-    ,(r2)+
  171.     movb    #'E    ,(r2)+
  172.     movb    #'-    ,(r2)+
  173.     mov    (r5)    ,r0
  174.     bge    10$
  175.     neg    r0
  176. 10$:    cmp    r0    ,#maxerr
  177.     bhi    20$
  178.     asl    r0
  179.     mov    errmap(r0),r1
  180. 20$:    mov    r1    ,-(sp)
  181. 30$:    movb    (r1)+    ,(r2)+
  182.     bne    30$
  183.     cmp    (sp)+    ,#baderr
  184.     bne    100$
  185.     movb    #'<    ,-1(r2)
  186.     calls    l$otoa    ,<r2,2(r5)>
  187.     add    #6    ,r2
  188.     movb    #'>    ,(r2)+
  189.     clrb    (r2)
  190. 100$:    unsave    <r2,r1,r0>
  191.     return
  192.  
  193.     .end
  194.