User Tools

Site Tools


cdc:nos2.source:nam5871:xsapprc

XSAPPRC

Table Of Contents

  • [00007] PROC XSAPPRC(SENTRY,RC)
  • [00057] PROC MRELS
  • [00058] PROC OSWAPIN
  • [00059] PROC OVLCALL
  • [00060] PROC XTRACE

Source Code

XSAPPRC.txt
  1. *DECK XSAPPRC
  2. USETEXT NIPDEF
  3. USETEXT FLIST
  4. USETEXT OVERLAY
  5. USETEXT PARAMS
  6. USETEXT SWAPIN
  7. PROC XSAPPRC(SENTRY,RC);
  8.  
  9. STARTIMS;
  10. #
  11. *1DC XSAPPRC
  12. *
  13. * 1. PROC NAME AUTHOR DATE
  14. * XSAPPRC E. GEE 77/08/10
  15. *
  16. * 2. FUNCTIONAL DESCRIPTION.
  17. * PROCESS RETURN CODE FROM SCP SWAPIN REQUEST FRO (NO ACB) APP
  18. *
  19. * 3. METHOD USED.
  20. * CHECK IF APP SWAPPED OUT AGAIN. IF SO, ISSUE ANOTHER SWAPIN.
  21. * ELSE, DELINK SWAPIN ENTRY FROM CHAIN AND RELEASE.
  22. *
  23. * 4. ENTRY PARAMETERS.
  24. * SENTRY ADDR OF (NO ACB) SWAPIN ENTRY
  25. * RC RETURN CODE FROM SCP SWAPIN REQUEST
  26. *
  27. * 5. EXIT PARAMETERS.
  28. * NONE
  29. *
  30. * 6. COMDECKS CALLED AND SYMPL TEXT USED.
  31. * FLIST NIPDEF OPSIZE OVERLAY
  32. * PARAMS SWAPIN
  33. *
  34. * 7. ROUTINES AND OVERLAYS CALLED.
  35. * MRELS RELEASE BUFFER SPACE
  36. * OSWAPIN SWAPIN APPLICATION
  37. * OVLCALL LOAD AND EXECUTE OVERLAY
  38. * XSAPPDL OVL DELINK (NO ACB) SWAPIN ENTRY
  39. * XTRACE RECORD PROCEDURE CALLS
  40. *
  41. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  42. *
  43. * THIS PROGRAM IS PART OF A PRIAMRY OVERLAY LOADED BY SUBROUTINE
  44. * OVLCALL.
  45. *
  46. * W A R N I N G - THIS PROCEDURE PLUS PROGRAM XSAPP
  47. * CANNOT EXCEED THE PRIMARY
  48. *CALL OPSIZE
  49. * THIS PROCEDURE IS CALLED BY XSAPP.
  50.  #
  51. STOPIMS;
  52. #
  53.   EXTERNAL VARIABLES
  54. #
  55. XREF
  56. BEGIN
  57. PROC MRELS; # RELEASE BUFFER SPACE #
  58. PROC OSWAPIN; # ISSUE SF.SWPI SCP FUNCTION #
  59. PROC OVLCALL; # LOAD AND EXECUTE OVERLAY #
  60. PROC XTRACE;
  61. END
  62.  
  63. # INPUT PARAMETERS #
  64. ITEM SENTRY; # ADDR OF (NO ACB) SWAPIN ENTRY #
  65. ITEM RC; # RETURN CODE FROM SCP SWAPIN REQUEST #
  66.  
  67. # OUTPUT PARAMETERS #
  68. # NONE #
  69.  
  70. #**********************************************************************#
  71.  
  72. BEGIN
  73.  
  74. CONTROL IFEQ DEBUG,1;
  75. XTRACE("APPRC") ;
  76. CONTROL FI;
  77.  
  78. #
  79.   PROCESS RETURN CODE FROM SYSTEM CONTROL POINT CALL FOR (NO ACB)
  80.   APPLICATION
  81. #
  82. P<SWPIE> = SENTRY; # ADDR OF (NO ACB) SWAPIN ENTRY #
  83. IF RC EQ RCSWAPPEDOUT
  84. OR RC EQ RCSWAPDELAY
  85. THEN # APP IS SWAPPED OUT AGAIN #
  86. BEGIN
  87. SWPIRC[0] = 0; # ZERO SCP RETURN CODE #
  88. SWPICB[0] = 0; # CLEAR SCP CALL COMPLETION BIT #
  89. P<FLE> = LOC(SWPIFW[0]);
  90. OSWAPIN(FLE); # SWAPIN APP AGAIN #
  91. END
  92. ELSE # DO NOT NEED TO REISSUE SYS CON PT CALL #
  93. BEGIN
  94. PARAMS1 = SENTRY; # ADDR OF (NO ACB) SWAPIN ENTRY TO DELINK #
  95. OVLNAME = XSAPPDLP; # NAME OF OVERLAY TO LOAD #
  96. OVLCALL; # LOAD AND EXECUTE OVERLAY #
  97. IF SWPIWR[0] NQ 0
  98. THEN # THERE WAS DATA BLK TO WRITE TO APP FL #
  99. MRELS(SWPIWR[0]); # RELEASE DATA BLOCK #
  100. MRELS(SENTRY); # RELEASE (NO ACB) SWAPIN ENTRY #
  101. END
  102. RETURN;
  103. END
  104. TERM
cdc/nos2.source/nam5871/xsapprc.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator