User Tools

Site Tools


cdc:nos2.source:nam5871:xdpip

Table of Contents

XDPIP

Table Of Contents

Source Code

XDPIP.txt
  1. *DECK XDPIP
  2.  
  3. IDENT XDPIP
  4. B1=1
  5. SST
  6. ENTRY XDPIP
  7. EXT XTRACE
  8. EXT RPVPBLK
  9. *#
  10. *1DC XDPIP
  11. *
  12. * 1. PROC NAME AUTHOR DATE
  13. * XDPIP J.C. LEE 80/04/15
  14. * L.T.NGUYEN 82/02/02
  15. *
  16. * 2. FUNCTIONAL DESCRIPTION.
  17. * DUMP NPU DRIVER PIP-S PPU MEMORY TO FILE ZZZZZPP.
  18. *
  19. * 3. METHOD USED.
  20. * IF PIP DUMPS EXIST:
  21. * OPEN ZZZZZPP FILE
  22. * WRITE FILE HEADER TO FILE
  23. * WRITE PIP PPU MEMORY DUMP(S) TO FILE
  24. * CLOSE FILE
  25. * CALL REPRIEVE RESET FUNCTION TO RESET PREVIOUS ERROR FLAGS
  26. *
  27. * 4. ENTRY PARAMETERS.
  28. * A1 = ADDRESS OF FWA OF PIP DUMP AREA
  29. *
  30. * 5. EXIT PARAMETERS.
  31. * NONE
  32. *
  33. * 6. COMDECKS USED.
  34. * LPMCOM
  35. *
  36. * 7. ROUTINES CALLED.
  37. * XTRACE
  38. *
  39. * 8. DAYFILE MESSAGES.
  40. * NONE
  41. *
  42. *#
  43.  
  44. *CALL MACDEF
  45. *CALL INPARU
  46.  
  47. ZPFET VFD 42/7LZZZZZPP,4/0,4/0,10/1
  48. FIRST VFD 36/0,6/1,18/0
  49. IN VFD 42/0,18/0
  50. OUT VFD 42/0,18/0
  51. LIMIT VFD 12/0,12/0,18/0,18/0
  52. VFD 60/0
  53. *
  54. * LOCAL VARIABLES
  55. *
  56. *
  57. * LPMCOM COMDECK IS USED BY THE NIP ROUTINE - XDPIP TO FORMAT
  58. * THE PIP DUMP FILE ZZZZZPP, AND BY THE UTILITY PROGRAM -
  59. * LISTPPM TO ANALYZE THE PIP DUMP FILE.
  60. *
  61. PDFHDRL EQU 3 PIP DUMP FILE HEADER LENGTH
  62. PDFID EQU 0 INDEX TO DUMP FILE HEADER-ID WORD
  63. PDFDATE EQU 1 INDEX TO DUMP FILE HEADER-DATE WORD
  64. PDFTIME EQU 2 INDEX TO DUMP FILE HEADER-TIME WORD
  65. PDFHDR DATA 10HPIP DUMP PIP DUMP FILE IDENTIFIER
  66. *
  67. * PIP DUMP RECORD HEADER HAS THE FOLLOWING FORMAT,
  68. *
  69. * PDR HEADER - 6/PDRID, 18/PDRBS, 24/0, 12/PIPORD
  70. *
  71. * WHERE PDRID = PDR BLOCK IDENTIFIER
  72. * PDRBS = PDR BLOCK SIZE
  73. * PIPORD = PIP ORDINAL OF PIP IN PDR
  74. *
  75. PDRHDRL EQU 1 PIP DUMP RECORD HEADER LENGTH
  76. PDRID EQU 48
  77. PDBUFL EQU 820+PDRHDRL
  78. PDBFWA BSSZ 1
  79. MEMPAR BSSZ 1
  80. CURFL BSSZ 1
  81. NUMAPIP BSSZ 1 NUMBER OF ACTIVE PIPS
  82. *
  83. XDPIP BSSZ 1 ENTRY/EXIT
  84. IFEQ DEBUG,1,6
  85. SX6 A1
  86. SA6 TEMP
  87. SX1 XDPIPN
  88. RJ XTRACE RECORD CALL
  89. SA1 TEMP
  90. SA1 X1
  91.  
  92. SB1 1
  93. *
  94. SA2 A1+1 ADDR OF SECOND PARAMETER
  95. SA1 X1 (X1) = FWA OF PIP DUMP AREA
  96. ZR X1,XDPIPX RETURN IF NO PIP DUMP EXISTS
  97. BX6 X1
  98. SA6 PDBFWA SET PIP DUMP AREA FWA
  99. SA1 X2 NUMBER OF ACTIVE PIPS
  100. BX6 X1
  101. SA6 NUMAPIP
  102. *
  103. MEMORY CM,MEMPAR,R,,NA
  104. SA1 MEMPAR
  105. AX1 30 (X1) = NIP-S FL
  106. BX6 X1
  107. SA6 CURFL
  108. SB2 PDFHDRL ZZZZZPP FILE HEADER SIZE
  109. *
  110. XDPIP0 BSS 0
  111. SA2 PDBFWA (X2) = FWA OF PDB
  112. SX4 X2+B2
  113. SB4 X4+PDBUFL (B4) = NEXT PDB FWA
  114. SA5 CURFL
  115. SB5 X5
  116. GE B5,B4,XDPIP1
  117. NZ B2,XDPIPX RETURN IF NO ZZZZZPP FILE YET
  118. *
  119. CLOSE ZPFET,NR,R
  120. XDPIPX BSS 0
  121. REPRIEVE RPVPBLK,RESET,77B
  122. EQ XDPIP RETURN AFTER CLOSING ZZZZZPP
  123. *
  124. XDPIP1 BSS 0
  125. SA3 FIRST
  126. MX0 42
  127. BX5 X0*X3
  128. BX6 X5+X2
  129. SA6 A3
  130. SX6 B4
  131. SA3 LIMIT
  132. SA6 PDBFWA SAVE NEXT PDB FWA
  133. BX5 X3*X0
  134. BX7 X5+X6
  135. SA7 A3 SET LIMIT POINTER
  136. BX6 X2
  137. SA6 OUT SET OUT POINTER
  138. EQ B2,B0,XDPIP2
  139. SA6 IN SET FIRST=IN=OUT
  140. OPEN ZPFET,WRITE
  141. SA3 PDFHDR
  142. MX0 54
  143. BX3 X0*X3 NUMBER OF ACTIVE PIP INTO HEADER
  144. SA4 NUMAPIP
  145. BX3 X3+X4
  146. BX6 X3
  147. SA3 IN
  148. SX3 X3 (X3) = IN POINTER
  149. SA6 X3
  150. SX4 X3+PDFDATE
  151. DATE X4 GET DATE
  152. SA3 IN
  153. SX3 X3
  154. SX4 X3+PDFTIME
  155. CLOCK X4 GET CLOCK TIME
  156. *
  157. XDPIP2 BSS 0
  158. SA4 LIMIT
  159. SB4 X4
  160. SX6 B4-1
  161. SA6 IN SET IN=LIMIT-1
  162. WRITER ZPFET,R
  163. SB2 B0
  164. EQ XDPIP0 CONTINUE TO PROCESS NEXT DUMP AREA
  165.  
  166. XDPIPN DATA L*XDPIP*
  167. TEMP BSS 1
  168. END
cdc/nos2.source/nam5871/xdpip.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator