Table of Contents

SETQP

Table Of Contents

  • [00005] GET/SET CPU/QUEUE PRIORITY FOR PROGRAM.
  • [00008] SET QUEUE PRIORITY FOR PROGRAM.
  • [00034] GET CURRENT QUEUE PRIORITY OF PROGRAM

Source Code

SETQP.txt
  1. IDENT SETQP
  2. ENTRY SETQP
  3. ENTRY GETQP
  4. ENTRY SETPR
  5. TITLE GET/SET CPU/QUEUE PRIORITY FOR PROGRAM.
  6. SST
  7. SPACE 4,15
  8. *** SETQP - SET QUEUE PRIORITY FOR PROGRAM.
  9. *
  10. * SETQP (QP) (*SYMPL* CALL).
  11. *
  12. * ENTRY A1 = ADDRESS OF QUEUE PRIORITY TO BE OBTAINED.
  13. * ( IF X1 = -1, THEN SET QUEUE PRIORITY TO MXPS+1 ).
  14. *
  15. * EXIT NONE.
  16. *
  17. * USES - A1
  18. * - X1, X2
  19. *
  20. * MACRO SETQP
  21. EJECT
  22. *CALL,COMCMAC
  23. *CALL,COMSPRD
  24. SPACE 4,15
  25. SETQP SUBR
  26. SA1 X1 SET QUEUE PRIORITY
  27. SX2 -1
  28. IX2 X2-X1
  29. *
  30. *
  31. *
  32. EQ SETQPX EXIT
  33. SPACE 4,15
  34. *** GETQP - GET CURRENT QUEUE PRIORITY OF PROGRAM
  35. *
  36. * GETQP(QP) (*SYMPL* CALL).
  37. *
  38. * ENTRY - A1 = ADDRESS TO RETURN CURRENT QUEUE PRIORITY TO.
  39. *
  40. * EXIT NONE.
  41. *
  42. * USES - A1
  43. * - X1
  44. *
  45. * MACRO GETQP
  46. SPACE 4,15
  47. GETQP SUBR
  48. GETQP X1
  49. EQ GETQPX RETURN
  50. SPACE 4,15
  51. *** SETPR - SET CPU PRIORITY OF PROGRAM
  52. *
  53. * SETPR (*SYMPL* CALL).
  54. *
  55. * ENTRY NONE.
  56. *
  57. * EXIT NONE.
  58. *
  59. * USES - X1
  60. *
  61. * MACRO SETPR
  62. SPACE 4
  63. SETPR SUBR
  64. SX1 AFCS MSAS CPU PRIORITY
  65. SETPR X1
  66. EQ SETPRX RETURN
  67. END