User Tools

Site Tools


cdc:nos2.source:nam5871:rdump

Table of Contents

RDUMP

Table Of Contents

Source Code

RDUMP.txt
  1. *DECK RDUMP
  2. IDENT RDUMP
  3. ENTRY RDUMP
  4. EXT OMSG
  5. EXT XTRACE
  6. SST
  7. IPARAMS
  8. *#
  9. *1DC RDUMP
  10. *
  11. * 1. PROC NAME AUTHOR DATE
  12. * RDUMP E. GEE 77/08/03
  13. *
  14. * 2. FUNCTIONAL DESCRIPTION.
  15. * THIS ROUTINE IS RESPONSIBLE FOR DUMPING NIP-S FIELD-LENGTH.
  16. *
  17. * 3. METHOD USED.
  18. * CHECK IF DMPFLG IS SET TO ZERO. IF SO, ALWAYS DUMP
  19. * IF NONZERO, CHECK IF DUMP ALREADY TAKEN OF SAME PROBLEM.
  20. * IF SO, DO NOT DUMP AGAIN.
  21. * IF NOT, DUMP AND STORE REASON CODE FOR DUMP IN DUMPTRK
  22. * DUMP BY CREATING FET WITH I/O BUFFER WHICH IS NIP-S ENTIRE
  23. * FL AND EXECUTING WRITER.
  24. * IF I/O ERROR OCCURS,
  25. * ISSUE INFORMATIVE DAYFILE MESSAGE.
  26. *
  27. * 4. ENTRY PARAMETERS. NONE
  28. *
  29. * 5. EXIT PARAMETERS. NONE
  30. *
  31. * 6. COMDECKS CALLED.
  32. * CYBERDEFS DUMPFLG FREETAB INPARU MACDEF
  33. *
  34. * 7. ROUTINES CALLED.
  35. * OMSG ISSUE DAYFILE MESSAGE
  36. * WRITER WRITE WITH END OF RECORD MACRO
  37. * XTRACE TRACES CALLS
  38. *
  39. * 8. DAYFILE MESSAGES.
  40. * " CIO ERROR NNB, LFN = ZZZZTMP."
  41. *
  42. *#
  43. DMPWD VFD 30/0,18/300000B,12/0
  44. DMPCHK BSSZ 1 COUNT OF DUMPS, NEVER MORE THAN 2
  45. *
  46. *
  47. *
  48. *CALL MACDEF
  49. *CALL CYBERDEFS
  50. *CALL INPARU
  51. *CALL FREETAB
  52. *CALL DUMPFLG
  53.  
  54. DUMPTRK BSSZ 1 WORD TO KEEP TRACK OF DUMP PROBLEMS
  55. *
  56. * FET FOR FILE DUMP
  57. *
  58. LN EQU 0 EOR/EOF LEVEL NUMBER
  59. AT EQU 0 ABNORMAL TERMINATION CODE
  60. CODE EQU 0 REQUEST/RETURN CODE
  61. DT EQU 0 DEVICE TYPE
  62. R EQU 0 RNADOM ACCESS BIT
  63. UP EQU 1 USER PROCESSING BIT
  64. EP EQU 1 ERROR PROCESSING BIT
  65. XL EQU 0 EXTENDED LABEL PROCESSING BIT
  66. L EQU 0 ADDITIONAL FET LENGTH OVER 5
  67. FNT EQU 0 FNT ADDRESS
  68. PRUSIZE EQU 0 PRU SIZE
  69.  
  70. FET VFD 42/7LZZZZTMP,4/LN,4/AT,9/CODE,1/1
  71. VFD 12/DT,1/R,1/0,1/UP,1/EP,2/0,1/XL,17/0,6/L,18/0
  72. IN VFD 42/0,18/0 NEXT LOCATION TO WRITE OUT DATA
  73. OUT VFD 42/0,18/0 LAST LOCATION TO WRITE OUT DATA
  74. LIMIT VFD 12/FNT,12/0,18/PRUSIZE
  75. VFD 18/0 LWA+1 OF I/O BUFFER
  76.  
  77. ERRMSG DIS ,* CIO ERROR NNB, LFN = ZZZZTMP.*
  78. ERRMSGC EQU ERRMSG+2 WORD TO CONTAIN ABNORMAL TERM CODE
  79.  
  80. LOCMSG VFD 60D/ERRMSG LOCATION OF DAYFILE MESSAGE
  81.  
  82.  
  83. RDUMP SUBR = ENTRY/EXIT
  84. IFEQ DEBUG,1,6
  85. SX6 A1
  86. SA6 TEMP
  87. SX1 XRDUMP
  88. RJ XTRACE
  89. SA1 TEMP
  90. SA1 X1
  91. SA1 DMPFLG REASON CODE FOR DUMPING NIP-S FIELD LENGTH
  92. ZR X1,DUMP IF RC = 0, ALWAYS DUMP
  93. SB1 X1
  94. SA2 DUMPTRK CHECK TO SEE IF PROBLEM OCCURRED BEFORE
  95. LX3 B1,X2
  96. NG X3,RETURN DUMP ALREADY TAKEN OF PROBLEM
  97. *
  98. * SET REASON CODE BIT IN DUMPTRK SO DUMP OF SAME PROBLEM WILL
  99. * NOT OCCUR AGAIN
  100. *
  101. MX4 1
  102. BX5 X3+X4
  103. SB2 60D CM WORD SIZE
  104. SB1 B2-B1
  105. LX7 B1,X5
  106. SA7 DUMPTRK
  107. *
  108. * SET UP FET BUFFER POINTERS
  109. *
  110. DUMP SA1 CTLSLWA LWA+1 OF NIP
  111. BX6 X1
  112. SA6 LIMIT SET I/O BUFFER LIMIT ADDRESS
  113. SX7 B0
  114. SA7 OUT SET I/O BUFFER OUT ADDRESS
  115. SX6 X6-1
  116. SA6 IN SET I/O BUFFER IN ADDRESS
  117.  
  118. WRITER FET,R WRITE NIP-S FL TO FILE DUMP
  119. MX5 5 MASK FOR ABNORMAL TERMINATION FIELD IN FET
  120. SA2 FET X2 = FIRST WORD OF FET
  121. LX5 9+5 SHIFT MASK TO ABNORMAL TERM FIELD POSITION
  122. BX5 X5*X2 EXTRACT ABNORMAL TERMINATION CODE
  123. ZR X5,RETURN RETURN IF NO I/O ERROR
  124.  
  125. MX0 3 MASK FOR ONE OCTAL DIGIT
  126. AX5 5 RIGHT JUSTIFY ABNORMAL TERM CODE
  127. LX0 3 RIGHT JUSTIFY OCTAL DIGIT MASK
  128. SA2 ERRMSGC X2 = WORD OF DAYFILE MSG TO CONTAIN CODE
  129. BX4 X0*X5 EXTRACT LEAST SIGNIFICANT DIGIT
  130. AX5 3 EXTRACT MOST SIGNIFICANT DIGIT
  131. SX4 X4+33B CONVERT OCTAL DIGIT TO OCTAL DISPLAY
  132. SX5 X5+33B CONVERT OCTAL DIGIT TO OCTAL DISPLAY
  133. LX5 6 SHIFT MOST SIG DIGIT TO 2ND DIGIT POS
  134. MX0 12D MASK FOR ABNORMAL TERM FIELD IN DAY MSG
  135. BX5 X5+X4 ABNORMAL TERM CODE IN OCTAL DISPLAY CODE
  136. LX0 42D+12D SHIFT MASK TO ABNORMAL TERM FIELD POSITION
  137. LX5 42D SHIFT DISPLAY CODE NO TO DAY MSG POSITION
  138. BX0 -X0*X2 CLEAR ABNORMAL TERM CODE FIELD IN DAY MSG
  139. BX6 X0+X5 ADD ABNORMAL TERM CODE TO DAY MSG
  140. SA6 A2
  141. SA1 LOCMSG A1 = ADDRESS OF PARAMETER BLOCK
  142. RJ OMSG ISSUE DAYFILE MESSAGE
  143.  
  144.  
  145. RETURN EQ RDUMP RETURN TO CALLING PROGRAM
  146. XRDUMP DATA L*RDUMP*
  147. TEMP BSS 1
  148. END
cdc/nos2.source/nam5871/rdump.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator