User Tools

Site Tools


cdc:nos2.source:nam5871:nmi_env

NMI=ENV

Table Of Contents

  • [00004] SIERRA - SYSTEM / NAMI β€œVERSN” ENVIRONMENT

Source Code

NMI=ENV.txt
  1. *DECK NMI=ENV
  2. IDENT SIERRA
  3. *CALL NMI=VER
  4. TITLE SIERRA - SYSTEM / NAMI "VERSN" ENVIRONMENT
  5. COMMENT SIERRA - ENVIRONMENT DETERMINATION
  6. ENTRY SIERRA,SENDMSG,CFOWAIT
  7. ENTRY CFOBSET,CFOBCLR
  8. ENTRY SETNUN
  9. ENTRY ABTRUN
  10. ENTRY CHEKORG
  11. SPACE 4,8
  12. USE /SIERRAC/
  13. P.CM BSS 1 CENTRAL MEMORY IN USE
  14. P.DATE BSS 1 TODAYS DATE (BMM.DD.YY.)
  15. P.JDATE BSS 1 TODAYS JULIAN DATE (00000YYDDD)
  16. P.CLOCK BSS 1 CURRENT TIME
  17. P.SECS BSS 1 CPU SECS
  18. P.USER BSS 1 JOB USER NAME (UUUUUUU000)
  19. P.MID BSS 1 MACHINE ID (00000000MM)
  20. USE
  21.  
  22. USE /MSGCOM/
  23. MSGBUFR BSS 9
  24. USE
  25.  
  26. RA EQU 0
  27. CFOBIT EQU 14 CFO BIT IN RA+0
  28.  
  29. MEMREQ VFD 30/0,30/0
  30. EJECT
  31. ** SIERRA
  32. * GENERAL PURPOSE COMPASS ROUTINES USED TO
  33. * RETURN DATE, TIME AND CM ENVIRONMENT INFORMATION
  34. * TO THE USER.
  35. *
  36.  
  37. SIERRA EQ *+1S17 ENTRY/EXIT
  38. DATE P.DATE
  39. JDATE P.JDATE
  40. CLOCK P.CLOCK
  41. TIME P.SECS
  42. USERNUM P.USER
  43. MACHID P.MID
  44. SA1 MEMREQ
  45. BX6 X1
  46. SA6 P.CM
  47. MEMORY CM,P.CM,R
  48. MX0 54
  49. SA1 P.DATE
  50. BX3 X0*X1 REPLACE TRAILING . WITH BLANK
  51. SX2 1R
  52. BX6 X3+X2
  53. SA6 A1
  54. SA4 P.CLOCK
  55. BX5 X0*X4 DITTO
  56. BX7 X5+X2
  57. SA7 A4
  58. EQ SIERRA
  59. SPACE 4,8
  60. ** SENDMSG
  61. * SEND A MESSAGE TO THE DAYFILE
  62. *
  63.  
  64. SENDMSG EQ *+1S17
  65. SX7 0
  66. SA7 MSGBUFR+8
  67. MESSAGE MSGBUFR,0,R
  68. EQ SENDMSG
  69. SPACE 4,8
  70. ** ABTRUN
  71. * ABORT THE NAMI PROGRAM (ABNORMAL TERMINATION)
  72. *
  73.  
  74. ABTRUN EQ *+1S17 ENTRY - NO EXIT
  75. ABORT
  76. EQ ABTRUN
  77. SPACE 4,10
  78. ** CHEKORG
  79. * CHECK ORIGIN OF CALLER
  80. *
  81. CHEKORG EQ *+1S17 ENTRY/EXIT
  82. GETSPS ABORT IF NOT SYOT OR CSOJ IN DEBUG
  83. EQ CHEKORG
  84. SPACE 4,10
  85. ** CFOWAIT
  86. * WAIT FOR OPERATOR TO ENTER A CFO COMMAND
  87. *
  88.  
  89. CFOWAIT EQ *+1S17 ENTRY/EXIT
  90.  
  91. SX6 20000
  92. SA6 CFOLCNT
  93. CFO1 RECALL WAIT A MOMENT
  94. SA1 RA+0 WAIT UNTIL CLEARED
  95. MX0 59
  96. LX1 60-CFOBIT
  97. BX3 -X0*X1
  98. ZR X3,CFOWAIT
  99. SA3 CFOLCNT
  100. SX4 1
  101. IX6 X3-X4
  102. SA6 CFOLCNT
  103. NZ X6,CFO1
  104. ZR X6,CFO1 (REMOVE IF WAIT LIMIT DESIRED)
  105. RJ CFOBCLR
  106. EQ CFOWAIT
  107.  
  108.  
  109. CFOBSET EQ *+1S17 ENTRY/EXIT
  110. MESSAGE ENTCFO,3,RECALL
  111. SA1 RA+0 GET CFO FLAG WORD
  112. MX0 59
  113. LX1 60-CFOBIT
  114. BX6 X0*X1
  115. BX6 -X0+X6
  116. LX6 CFOBIT
  117. SA6 A1 RESTORE NEW VALUE
  118. EQ CFOBSET
  119.  
  120. ENTCFO DIS ,*ENTER CFO COMMAND*
  121.  
  122.  
  123. CFOBCLR EQ *+1S17 ENTRY/EXIT
  124. SA1 RA+0 GET CFO FLAG WORD
  125. MX0 59
  126. LX1 60-CFOBIT
  127. BX6 X0*X1 CLEAR BIT
  128. LX6 CFOBIT
  129. SA6 A1
  130. EQ CFOBCLR
  131.  
  132.  
  133. CFOLCNT BSS 1
  134. SPACE 4,10
  135. ** SETNUN
  136. * SET NAMI USER NUMBER
  137. *
  138. JOBORG BSS 1
  139.  
  140. SETNUN EQ *+1S17 ENTRY/EXIT
  141. GETJO JOBORG
  142. SA1 JOBORG
  143. MX2 54
  144. BX1 -X2*X1
  145. ZR X1,SETIT
  146. EQ SETNUN
  147.  
  148. SETIT SETPFP SETNUND SET UI / UN TO SYSTEMX
  149. EQ SETNUN
  150.  
  151.  
  152. SETNUND VFD 42/0,14/0,4/3
  153. VFD 42/0,18/0
  154. VFD 42/0LSYSTEMX,18/377777B
  155. SPACE 4,8
  156. END
cdc/nos2.source/nam5871/nmi_env.txt Β· Last modified: 2023/08/05 17:22 by Site Administrator