User Tools

Site Tools


cdc:nos2.source:nam5871:ns_end

NS$END

Table Of Contents

  • [00005] PROC NS$END(ERRCODE)
  • [00006] NS$END - PROCESS HOP/END.
  • [00010] PROCESS HOP/END.
  • [00039] PROC NS$DBG
  • [00045] FUNC NS$FEC U
  • [00046] PROC RETTSB

Source Code

NS$END.txt
  1. *DECK NS$END
  2. USETEXT COM$NS
  3. USETEXT ERR$NS
  4.  
  5. PROC NS$END(ERRCODE); # PROCESS HOP/END #
  6. # TITLE NS$END - PROCESS HOP/END. #
  7.  
  8. BEGIN # NS$END #
  9. #
  10. ** NS$END - PROCESS HOP/END.
  11. *
  12. * J.C. LEE 1981
  13. *
  14. * THIS ROUTINE PROCESS HOP/END.
  15. *
  16. * PROC NS$END(ERRCODE)
  17. *
  18. * ENTRY:
  19. * NONE.
  20. *
  21. * EXIT:
  22. * ERRCODE - SET IF ERROR IS FOUND.
  23. *
  24. * METHOD:
  25. * IF K-DISPLAY IS ASSIGNED:
  26. * RELEASE TSB FOR PAGE-WAIT BUFFER.
  27. * RELEASE TSB FOR K-DISPLAY BUFFER.
  28. * CLEAN UP DISPLAY CONTROL WORD.
  29. * IF K-DISPLAY NOT ASSIGNED:
  30. * SET ERROR CODE TO "ILLEGAL HOP SM".
  31. *
  32. #
  33.  
  34. ITEM ERRCODE U; # ERROR CODE #
  35.  
  36. $BEGIN
  37. XREF
  38. BEGIN
  39. PROC NS$DBG; # TRACE PROC CALL #
  40. END
  41. $END
  42.  
  43. XREF
  44. BEGIN
  45. FUNC NS$FEC U; # FORMAT ERROR CODE #
  46. PROC RETTSB; # RELEAE TSB #
  47. END
  48. CONTROL EJECT;
  49.  
  50. $BEGIN
  51. NS$DBG("END"); # TRACE CALL #
  52. $END
  53.  
  54. IF DCW$F$ASS[0]
  55. THEN # K-DISPLAY ASSIGNED #
  56. BEGIN
  57. RETTSB(DCW$PWBTSB[0]); # RELEASE TSB FOR PAGE WAIT BUFFER #
  58. RETTSB(DCW$KDBTSB[0]); # RELEASE TSB FOR K-DISPLAY BUFFER #
  59. DCW$WORD[0] = 0; # CLEAN-UP DISPLAY CONTROL WORD #
  60. END
  61.  
  62. ELSE
  63. BEGIN
  64. ERRCODE = NS$FEC(EC"ERR$SM", SMEC"HSM$HOPSM");
  65. END
  66.  
  67. RETURN;
  68. END # NS$END PROC #
  69.  
  70. TERM
cdc/nos2.source/nam5871/ns_end.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator