User Tools

Site Tools


cdc:nos2.source:opl871:calltsk

CALLTSK

Table Of Contents

  • [00004] CALLTSK - REQUEST SCHEDULING OF TASK(S).

Source Code

CALLTSK.txt
  1. IDENT CALLTSK
  2. ENTRY CALLTSK
  3. SYSCOM B1
  4. TITLE CALLTSK - REQUEST SCHEDULING OF TASK(S).
  5. *COMMENT CALLTSK - REQUEST SCHEDULING OF TASK(S).
  6. COMMENT COPYRIGHT CONTROL DATA SYSTEMS INC. 1992.
  7. SPACE 4
  8. ***** CALLTSK - REQUEST SCHEDULING OF TASK(S).
  9. *
  10. * J. C. BOHNHOFF. 72/07/09.
  11. * W. E. MARTIN. 78/09/30.
  12. SPACE 4
  13. * COMMON TEXTS.
  14.  
  15.  
  16. *CALL COMCMAC
  17. *CALL COMKMAC
  18. SPACE 4,30
  19. *** ENTRY FORMAT -
  20. *
  21. * FORTRAN EXTENDED -
  22. *
  23. * CALL CALLTSK(TASK,CEASE,TASK1,TASK2,...,TASKN)
  24. *
  25. * COBOL -
  26. *
  27. * ENTER CALLTSK USING TASK,CEASE,TASK1,TASK2,...,TASKN.
  28. *
  29. * WHERE - TASK = NAME OF NEXT TASK TO CALL. THE TASK NAME MAY
  30. * BE 1 - 7 CHARACTERS, LEFT JUSTIFIED WITH BLANK OR
  31. * BINARY ZERO FILL.
  32. *
  33. * (CEASE) .NE. ZERO - IF CALLING TASK IS TO RESUME
  34. * EXECUTING AFTER REQUEST IS ISSUED.
  35. *
  36. * (OPTIONAL ARGUMENT - FOR ONE TASK - ZERO ASSUMED)
  37. * TASKI = OPTIONAL LIST OF TASKS TO ENTER INTO THE
  38. * SCHEDULING LIST.
  39. *
  40. * NOTE - IF MORE THAN 5 TASKS ARE DETECTED IN A LIST, THE
  41. * TASK IS ABORTED WITH A PARAMETER LIST STRUCTURE
  42. * ERROR.
  43. *
  44. * USES A - 1, 5, 6, 7.
  45. * X - 1, 2, 4, 5, 6, 7.
  46. * B - 1, 4, 7.
  47. *
  48. * CALLS ZFN.
  49. *
  50. * MACROS ARGERR, SYSTEM.
  51.  
  52.  
  53. VFD 42/0LCALLTSK,18/CALLTSK
  54.  
  55. CAL5 SA1 CALB RESTORE (A0)
  56. SA0 X1+
  57.  
  58. CALLTSK SUBR ENTRY/EXIT
  59. SX6 A0 SAVE (A0)
  60. SA5 X1 READ TASK NAME
  61. SA6 CALB
  62. SB1 1
  63. BX1 X5
  64. SB4 B0 INITIALIZE *CEASE* FLAG
  65. RJ ZFN ZERO FILL NAME
  66. BX6 X1
  67. SA2 A1+B1 READ CEASE FLAG ADDRESS
  68. SA6 CALA
  69. ZR X2,CAL2 IF CEASE FLAG MISSING
  70. SA5 A2+1 READ FIRST LIST ADDRESS
  71. SA2 X2 READ CEASE FLAG
  72. UX2 X2
  73. SB4 X2+ (B4) = CEASE FLAG
  74. ZR X5,CAL2 IF NO TASK LIST
  75. SB7 4 SET TASK LIST LIMIT
  76. CAL1 SA4 X5+ READ TASK NAME
  77. SA5 A5+B1 READ NEXT ADDRESS
  78. BX1 X4 STORE TASK NAME
  79. RJ ZFN ZERO FILL NAME
  80. BX6 X1
  81. SB7 B7-B1 DECREMENT LIST ENTRY COUNT
  82. SA6 A6+1
  83. LT B7,CAL4 IF LIST FULL
  84. NZ X5,CAL1 IF ANOTHER ARGUMENT PRESENT
  85. CAL2 BX6 X6-X6 TERMINATE LIST
  86. SX2 B0
  87. ZR B4,CAL3 IF CEASE REQUESTED
  88. SX2 B1
  89. CAL3 SA6 A6+B1
  90. SYSTEM SCT,R,CALA,X2+2 ENTER REQUEST
  91. EQ CAL5 RESTORE (A0)
  92.  
  93. * PROCESS ARGUMENT ERROR IF GREATER THAN FIVE PARAMETERS.
  94.  
  95. CAL4 SA4 X5 READ NEXT PARAMETER
  96. ZR X4,CAL2 IF PROPER LIST TERMINATOR
  97. MX0 30
  98. SA1 CALLTSK READ ENTRY POINT
  99. LX1 30
  100. SA2 X1-1 READ TRACE-BACK WORD
  101. BX6 -X0*X2
  102. SA6 CALA
  103. ARGERR A6 EXIT TO EXECUTIVE
  104.  
  105. * PROGRAM STORAGE.
  106.  
  107. CALA BSSZ 6 STORAGE FOR TASK LIST
  108. CALB BSSZ 1 STORAGE FOR (A0)
  109. SPACE 4
  110. * COMMON DECK.
  111.  
  112.  
  113. *CALL COMKZFN
  114. SPACE 4
  115. END
cdc/nos2.source/opl871/calltsk.txt ยท Last modified: 2023/08/05 17:24 by Site Administrator