User Tools

Site Tools


cdc:nos2.source:nam5871:mclril

MCLRIL

Table Of Contents

  • [00005] PROC MCLRIL
  • [00053] PROC XTRACE

Source Code

MCLRIL.txt
  1. *DECK MCLRIL
  2. USETEXT NIPDEF
  3. USETEXT PIT
  4. USETEXT PT
  5. PROC MCLRIL; # CLEARS NIP/PIP INTERLOCK #
  6. STARTIMS;
  7. #
  8. *1DC MCLRIL
  9. * 1. PROC NAME AUTHOR DATE
  10. * MCLRIL J.C. LEE 80/04/01
  11. *
  12. * 2. FUNCTIONAL DESCRIPTION
  13. * CLEARS NIP/PIP INTERLOCK
  14. *
  15. * 3. METHOD USED
  16. * CLEARS REQUEST INTERLOCK FLAG AND ACKNOWLEDGE FLAG
  17. * IN ALL THE PIT ENTRIES.
  18. *
  19. * 4. ENTRY PARAMETERS.
  20. * NONE
  21. *
  22. * 5. EXIT PARAMETERS.
  23. * NONE
  24. *
  25. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  26. * NIPDEF PIT PT OSIZE
  27. * SYSTIME
  28. *
  29. * 7. ROUTINES AND OVERLAY CALLED.
  30. * XTRACE TRACE CALLS
  31. *
  32. * 8. DAYFILE MESSAGES.
  33. * NONE
  34. *
  35. * W A R N I N G - THIS PROCEDURE IS LOADED WITH PRIMARY OVERLAY
  36. * MGBGCLT, MDRPTR, MCHKPTR, MAJPTR
  37. * AND XCHKPCR. THEREFORE WHENEVER THIS ROUTINE
  38. * IS MODIFIED, CHECK MUST BE MADE TO MAKE SURE
  39. * THE OVERLAYS MGBGCLT, MDRPTR, MCHKPTR,
  40. * MAJPTR AND XCHKPCR WILL NOT EXCEED THE
  41. *CALL OSIZE
  42. *
  43. * THIS PROCEDURE IS CALLED BY MSETIL, NPHECP,
  44. * AND NPPCT.
  45. *
  46.  #
  47. STOPIMS;
  48. #
  49.   EXTERNAL VARIABLES
  50. #
  51. XREF
  52. BEGIN
  53. PROC XTRACE; # TRACE CALLS #
  54. END
  55. #
  56.   INTERNAL VARIABLES
  57. #
  58. ITEM
  59. INDEX; # LOOP INDEX #
  60.  
  61. # ******************************************************************** #
  62.  
  63. BEGIN
  64.  
  65. CONTROL IFEQ DEBUG,1;
  66. XTRACE("MCLRI") ;
  67. CONTROL FI;
  68.  
  69. FOR INDEX = 1 STEP 1 UNTIL MAXPIP
  70. DO # CLEAR INTERLOCK IN ALL PIT ENTRIES #
  71. BEGIN
  72. IF PITPF[INDEX]
  73. THEN # INTERLOCK WAS REQUESTED FOR THIS PIP #
  74. BEGIN
  75. PITPF[INDEX] = FALSE; # CLEAR INTERLOCK REQUEST FLAG #
  76. IF PITACK[INDEX]
  77. THEN # INTERLOCK WAS ACKNOWLEDGED #
  78. BEGIN
  79. PITACK[INDEX] = FALSE; # CLEAR INTERLOCK ACKNOWLEDGE FLAG #
  80. END
  81. ELSE
  82. BEGIN
  83. PITAF[INDEX] = TRUE; # SET INTERLOCK ABANDONED FLAG #
  84. END
  85. END
  86. END
  87.  
  88. RETURN;
  89. END
  90. TERM
cdc/nos2.source/nam5871/mclril.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator