User Tools

Site Tools


cdc:nos2.source:nam5871:np_dmb

NP$DMB

Table Of Contents

  • [00026] NP$DATE - OBTAIN DATE.
  • [00052] NP$MSG - SEND MESSAGE.
  • [00092] NP$RTIM - ACCUMULATED REAL TIME SINCE DEADSTART
  • [00134] NP$TIM - ACCUMULATED CENTRAL PROCESSOR TIME.
  • [00158] NP$WRTO - WRITES ONE WORD TO FILE
  • [00202] NP$WRTR - WRITE END OF RECORD.
  • [00255] NP$WRTW - WRITE DATA FROM WORKING BUFFER.
  • [00311] NP$XCDD - CONVERT INTEGER TO DECIMAL DISPLAY CODE.

Source Code

NP$DMB.txt
  1. *DECK NP$DMB
  2. IDENT NP$DMB
  3. ENTRY NP$DMB
  4. *#
  5. * NP$DMB DUMP FIELD LENGTH TO ZZZZDMB FILE
  6. *
  7. * CALL NP$DMB(DUMPID,ECS)
  8. *
  9. * ENTRY DUMPID - ID NUMBER FOR THE DUMP
  10. * ECS - NOT ZERO CAUSE ECS TO BE DUMPED ALSO
  11. *
  12. * EXIT NONE.
  13. *
  14. *
  15. *#
  16. NP$DMB SUBR =
  17. SA2 X1 DUMP ID
  18. SA3 A1+1 BOOLEAN ECS PARAM ADDRESS
  19. SA3 X3 ECS FLAG
  20. SYSTEM DMB,R,X2,X3
  21. EQ NP$DMB
  22. END
  23.  
  24. IDENT NP$DATE
  25. ENTRY NP$DATE
  26. TITLE NP$DATE - OBTAIN DATE.
  27. COMMENT OBTAIN DATE.
  28. NP$DATE SPACE 4,10
  29. *#
  30. * NP$DATE - OBTAIN DATE.
  31. *
  32. * CALL NP$DATE (STATUS)
  33. *
  34. * ENTRY NONE
  35. *
  36. * EXIT (STATUS) = DATE
  37. * 60/ * YY/MM/DD.*
  38. *
  39. * NP$DATE (STATUS); (SYMPL CALL)
  40. *
  41. * EXIT - STATUS, A CHARACTER ITEM TO CONTAIN THE TIME
  42.  
  43. *#
  44.  
  45. NP$DATE SUBR =
  46. *CALL NETDATE
  47. EQ NP$DATEX
  48.  
  49. END
  50. IDENT NP$MSG
  51. ENTRY NP$MSG
  52. TITLE NP$MSG - SEND MESSAGE.
  53. COMMENT SEND MESSAGE.
  54. NP$MSG SPACE 4,10
  55. *#
  56. * NP$MSG - SEND MESSAGE.
  57. *
  58. * CALL NP$MSG (TEXT,OPTION)
  59. *
  60. * ENTRY (TEXT) = MESSAGE ARRAY, TERMINATED BY ZERO BYTE
  61. * (OPTION) = 0, SEND MESSAGE TO SYSTEM DAYFILE,
  62. * LOCAL JOB DAYFILE, AND A AND B DISPLAYS
  63. * = 1, SEND MESSAGE TO LINE 1 OF CONTROL POINT
  64. * = 2, SEND MESSAGE TO LINE 2 OF CONTROL POINT
  65. * = 3, SEND MESSAGE TO USER DAYFILE AND LINE
  66. * 1 OF CONTROL POINT
  67. * = 4, SEND MESSAGE TO ERROR LOG DAYFILE
  68. * = 5, SEND MESSAGE TO ACCOUNT DAYFILE
  69. * = 6, SAME AS 0
  70. * = 7, SAME AS 3
  71. * = 5HLOCAL, SEND MESSAGE TO LOCAL JOB DAYFILE
  72. *
  73. * NP$MSG (TEXT,OPTION); ( SYMPL CALL )
  74. *
  75. * ENTRY - TEXT, AN ARRAY WITH THE TEXT IN IT, OR AN ITEM
  76. * WITH TEXT IN IT
  77. * OPTION, AN ITEM CONTAINING ONE OF THE OPTIONS
  78.  
  79. *#
  80.  
  81.  
  82.  
  83. NP$MSG SUBR =
  84. *CALL NETMSG
  85. OUT EQ NP$MSGX
  86.  
  87. END
  88. *CALL NP$READ
  89. *CALL NP$ROUT
  90. IDENT NP$RTIM
  91. ENTRY NP$RTIM
  92. TITLE NP$RTIM - ACCUMULATED REAL TIME SINCE DEADSTART
  93. *IF DEF,IMS
  94. *#
  95. *1DC NP$RTIM
  96. *
  97. * 1. SUBROUTINE NAME AUTHOR DATE
  98. * NP$RTIM S. KRULEVITCH 78/11/21
  99. *
  100. * 2. FUNCTIONAL DESCRIPTION
  101. * THIS ROUTINE RETURNS THE REAL TIME SINCE DEADSTART IN
  102. * MILLISECONDS AND SECONDS. COMMON DECK NP$RTIM IS SHARED WITH
  103. * THE MACREL ROUTINE IN NAMLIB.
  104. *
  105. * 3. METHOD USED
  106. * SYMPL CALL: NP$RTIM(STAT);
  107. *
  108. * 4. ENTRY PARAMETER
  109. * STAT - AN ADDRESS TO RECEIVE THE TIME
  110. *
  111. * 5. EXIT PARAMETER
  112. * STAT - REAL TIME
  113. * 24/SECONDS,36/MILLISECONDS
  114. *
  115. * 6. COMMON DECKS CALLED
  116. * NP$RTIM
  117. *
  118. * 7. MACROS CALLED
  119. * RTIME - REAL TIME SINCE DEADSTART
  120. *
  121. * 8. DAYFILE MESSAGES
  122. * NONE
  123. *
  124. *#
  125. *ENDIF
  126. NP$RTIM SUBR =
  127. *CALL NP$RTIM
  128. EQ NP$RTIMX
  129. END
  130. *CALL NP$RWD
  131. *CALL NP$SLOF
  132. IDENT NP$TIM
  133. ENTRY NP$TIM
  134. TITLE NP$TIM - ACCUMULATED CENTRAL PROCESSOR TIME.
  135. COMMENT ACCUMULATED CENTRAL PROCESSOR TIME.
  136. NP$TIM SPACE 4,10
  137. *#
  138. * NP$TIM - ACCUMULATED CENTRAL PROCESSOR TIME.
  139. *
  140. * CALL NP$TIM(STAT)
  141. *
  142. * ENTRY (STAT) = ADDRESS TO RECEIVE THE CPU TIME
  143. *
  144. * EXIT (STAT) = CPU TIME
  145. * 24/0, 24/CPSECS, 12/MLSECS
  146. *
  147. * NP$TIM(STAT); (SYMPL CALL)
  148. *
  149. * ENTRY - STAT,AN ITEM TO RECEIVE THE CPU TIME
  150. *#
  151. NP$TIM SUBR =
  152. *CALL NETTIM
  153. EQ NP$TIMX
  154. END
  155.  
  156. IDENT NP$WRTO
  157. ENTRY NP$WRTO
  158. TITLE NP$WRTO - WRITES ONE WORD TO FILE
  159. COMMENT WRITES ONE WORD TO FILE
  160. *IF DEF,IMS
  161. *#
  162. *1DC NP$WRTO
  163. *
  164. * 1. SUBROUTINE NAME AUTHOR DATE
  165. * NP$WRTO S. KRULEVITCH 78/12/04
  166. *
  167. * 2. FUNCTIONAL DESCRIPTION
  168. * THIS ROUTINE WRITES ONE WORD TO THE CIRCULAR IO BUFFER.
  169. *
  170. * 3. METHOD USED
  171. * COMMON DECK NP$WRTO IS SHARED WITH THE MACREL ROUTINE IN NAMLIB.
  172. * SYMPL CALL: NP$WRTO(FILE,WORD);
  173. *
  174. * 4. ENTRY PARAMETERS
  175. * FILE - FIRST WORD OF THE FET
  176. * WORD - WORD TO BE TRANSFERRED
  177. *
  178. * 5. EXIT PARAMETERS
  179. * NONE
  180. *
  181. * 6. COMMON DECKS CALLED
  182. * NP$WRTO
  183. *
  184. * 7. DAYFILE MESSAGES
  185. * NONE
  186. *
  187. *#
  188. *ENDIF
  189. NP$WRTO SUBR =
  190. MX4 5 MASK FOR ABNORMAL TERMINATION FIELD IN FET
  191. SA2 X1 X2 = FIRST WORD OF FET
  192. LX4 9+5 SHIFT MASK TO POSITION OF ABNORMAL TERM FLD
  193. BX5 X4*X2 EXTRACT ABNORMAL TERMINATION FIELD FROM FET
  194. NZ X5,NP$WRTOX IF I/O ERROR HAS OCCURRED ON FILE
  195.  
  196. *CALL NP$WRTO
  197. EQ NP$WRTOX
  198. END
  199.  
  200. IDENT NP$WRTR
  201. ENTRY NP$WRTR
  202. TITLE NP$WRTR - WRITE END OF RECORD.
  203. COMMENT WRITE END OF RECORD.
  204. NP$WRTR SPACE 4,10
  205. *#
  206. *1DC NP$WRTR
  207. *
  208. * 1. SUBROUTINE AUTHOR DATE
  209. * NP$WRTR E. GEE 86/01/28
  210. *
  211. * 2. FUNCTIONAL DESCRIPTION.
  212. * WRITE END OF RECORD TO FILE.
  213. *
  214. * SYMPL CALL: NP$WRTR(FILE,LEVEL);
  215. *
  216. * WHERE FILE = FIRST WORD ADDRESS OF THE FET
  217. * LEVEL = END OF RECORD LEVEL NUMBER
  218. *
  219. * 3. METHOD USED.
  220. * IF I/O ERROR HAS OCCURRED,
  221. * RETURN.
  222. * ELSE (NO I/O ERROR ON FILE),
  223. * EXECUTE WRITER NOS MACRO.
  224. *
  225. * 4. ENTRY PARAMETERS.
  226. * A1 ADDRESS OF PARAMETER LIST CONTAINING INPUT
  227. * PARAMETERS
  228. *
  229. * 5. EXIT PARAMETERS.
  230. * NONE.
  231. *
  232. * 6. COMMON DECKS CALLED.
  233. * NETWRTR COMPASS CODE TO EXECUTE WRITER MACRO
  234. *
  235. * 7. SUBROUTINES AND MACROS CALLED.
  236. * WRITER WRITE END OF RECORD NOS MACRO
  237. *
  238. * 8. DAYFILE MESSAGES.
  239. * NONE.
  240. *
  241. *#
  242.  
  243. NP$WRTR SUBR =
  244. MX4 5 MASK FOR ABNORMAL TERMINATION FIELD IN FET
  245. SA2 X1 X2 = FIRST WORD OF FET
  246. LX4 9+5 SHIFT MASK TO POSITION OF ABNORMAL TERM FLD
  247. BX5 X4*X2 EXTRACT ABNORMAL TERMINATION FIELD FROM FET
  248. NZ X5,NP$WRTRX IF I/O ERROR HAS OCCURRED ON FILE
  249. *CALL NETWRTR
  250. EQ NP$WRTRX
  251.  
  252. END
  253. IDENT NP$WRTW
  254. ENTRY NP$WRTW
  255. TITLE NP$WRTW - WRITE DATA FROM WORKING BUFFER.
  256. COMMENT WRITE DATA FROM WORKING BUFFER.
  257. NP$WRTW SPACE 4,10
  258. *#
  259. *1DC NP$WRTW
  260. *
  261. * 1. SUBROUTINE AUTHOR DATE
  262. * NP$WRTW E. GEE 86/01/28
  263. *
  264. * 2. FUNCTIONAL DESCRIPTION.
  265. * WRITE DATA TO CIO BUFFER FROM WORKING STORAGE AREA
  266. *
  267. * SYMPL CALL: NP$WRTW(FILE,BUF,N);
  268. *
  269. * WHERE FILE = FIRST WORD ADDRESS OF THE FET
  270. * BUF = ADDRESS OF WORKING STORAGE AREA
  271. * N = NO OF WORDS TO COPY TO CIO BUF
  272. *
  273. * 3. METHOD USED.
  274. * IF I/O ERROR HAS OCCURRED,
  275. * RETURN.
  276. * ELSE (NO I/O ERROR ON FILE),
  277. * EXECUTE WRITEW NOS MACRO.
  278. *
  279. * 4. ENTRY PARAMETERS.
  280. * A1 ADDRESS OF PARAMETER LIST CONTAINING INPUT
  281. * PARAMETERS
  282. *
  283. * 5. EXIT PARAMETERS.
  284. * NONE.
  285. *
  286. * 6. COMMON DECKS CALLED.
  287. * NETWRTW COMPASS CODE TO EXECUTE WRITEW MACRO
  288. *
  289. * 7. SUBROUTINES AND MACROS CALLED.
  290. * WRITEW WRITE DATA TO CIO BUF FROM WSA
  291. *
  292. * 8. DAYFILE MESSAGES.
  293. * NONE.
  294. *
  295. *#
  296.  
  297. NP$WRTW SUBR =
  298. MX4 5 MASK FOR ABNORMAL TERMINATION FIELD IN FET
  299. SA2 X1 X2 = FIRST WORD OF FET
  300. LX4 9+5 SHIFT MASK TO POSITION OF ABNORMAL TERM FLD
  301. BX5 X4*X2 EXTRACT ABNORMAL TERMINATION FIELD FROM FET
  302. NZ X5,NP$WRTWX IF I/O ERROR HAS OCCURRED ON FILE
  303.  
  304. *CALL NETWRTW
  305. EQ NP$WRTWX
  306.  
  307. END
  308. IDENT NP$XCDD
  309. B1=1
  310. LIST F
  311. TITLE NP$XCDD - CONVERT INTEGER TO DECIMAL DISPLAY CODE.
  312. COMMENT CONVERT INTEGER TO DECIMAL DISPLAY CODE.
  313. NP$XCDD SPACE 4,10
  314. *#
  315. * NP$XCDD - CONVERT INTEGER TO DECIMAL DISPLAY CODE.
  316. *
  317. * HOLLERITH = NP$XCDD (INTEGER)
  318. *
  319. * XX = NP$XCDD(YY); (SYMPL CALL)
  320. *
  321. * ENTRY - YY, AN ITEM THAT CONTAINS THE INTEGER TO BE CONVERTED
  322. *
  323. * EXIT - XX, A CHAR. ITEM TO CONTAIN DISPLAY CODE ON EXIT
  324.  
  325. *#
  326.  
  327. NP$XCDD SUBR = ENTRY/EXIT
  328. *CALL NETXCDD
  329.  
  330. END
cdc/nos2.source/nam5871/np_dmb.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator