User Tools

Site Tools


cdc:nos2.source:nam5871:ksttupd

KSTTUPD

Table Of Contents

  • [00007] PRGM KSTTUPD
  • [00054] PROC KPUT
  • [00055] PROC XTRACE

Source Code

KSTTUPD.txt
  1. *DECK KSTTUPD
  2. USETEXT NIPDEF
  3. USETEXT SYSTIME
  4. USETEXT KDIS
  5. USETEXT KHDRX
  6. USETEXT NBT
  7. PRGM KSTTUPD ; # UPDATE STATISTICS IN K-DISPLAY #
  8. STARTIMS ;
  9. #
  10. *1DC KSTTUPD
  11. *
  12. * 1. PROC NAME AUTHOR DATE
  13. * KSTTUPD A. BEN-ARTZI 82/08/04
  14. *
  15. * 2.FUNCTIONAL DESCRIPTION
  16. *
  17. * UPDATE THE STATUS DISPLAY PERIODICALLY WITH STATISTICS INFO
  18. *
  19. * 3.METHOD USED
  20. *
  21. * SCAN THE NBT AND FIND ACTIVE ENTRIES
  22. * UPDATE THE K-DISPLAY WITH THE DIFFERANCE VALUES OF STAT FIELDS
  23. * EQUATE THE VALUE FIELDS FOR NEXT COUNTING
  24. *
  25. * 4.ENTRY PARAMETERS
  26. * NONE
  27. *
  28. * 5.OUTPUT PARAMETERS
  29. * NONE
  30. *
  31. * 6.COMDECKS AND SYMPL TEXTS USED
  32. *
  33. * NIPDEF KDIS NBT OPSIZE
  34. *
  35. * 7.ROUTINES CALLED
  36. *
  37. * XTRACE - TRACE THE CALL FOR DEBUG
  38. * KPUT - DYNAMIC UPDATE OF K-DISPLAY
  39. *
  40. * 8.DAYFILE MESSAGES AND OTHER INFO
  41. *
  42. * THIS IS A PRIMARY OVERLAY LOADED BY XEXEC
  43. * W A R N I N G-THIS PROGRAM CANNOT EXCEED THE PRIMARY
  44. *CALL OPSIZE
  45. *
  46.  #
  47. STOPIMS ;
  48. #
  49.   EXTERNAL REFERENCES
  50. #
  51. XREF
  52. BEGIN
  53. LABEL RJMAIN ;
  54. PROC KPUT ;
  55. PROC XTRACE ;
  56. END
  57. #
  58.   INTERNAL VARIABLES
  59. #
  60. ITEM K ; # INDEX TO NBT ENTRIES #
  61. ITEM KN ; # INDEX INTO STATUS DISPLAY BUFFER #
  62. ITEM KE ; # INDEX INTO STATUS DISPLAY BUFFER ( EST BIAS ) #
  63.  
  64. BEGIN
  65. CONTROL IFEQ DEBUG,1 ;
  66. XTRACE("KSTUP") ;
  67. CONTROL FI ;
  68.  
  69. FOR K = 0 STEP NBTFETNO UNTIL NBTMAXID
  70. DO
  71. BEGIN
  72. IF NBTIUF[K]
  73. AND NBTKNDX[K] NQ 0
  74. AND NBTKNDX[K] GQ KDESTST[0]
  75. AND NBTKNDX[K] LQ KDESTND[0]
  76. THEN
  77. BEGIN
  78. IF KDAPPST[0] EQ 0 THEN
  79. KN = NBTKNDX[K] - KDESTST[0];
  80. ELSE
  81. KN = NBTKNDX[K] + KDAPPND[0] - KDAPPST[0];
  82. KE = KHDRNP[0] ;
  83. KPUT(KE,KN,KPESCPS,
  84. (NBTIVTCC[K+2]-NBTIVTLS[K+2]) ) ;
  85. KPUT(KE,KN,KPESPRS,
  86. (NBTPRUCC[K+3]-NBTPRULS[K+3]) ) ;
  87. KPUT(KE,KN,KPESREJ,NBTNIREJ[K+4]);
  88. NBTIVTLS[K+2] = NBTIVTCC[K+2] ;
  89. NBTPRULS[K+3] = NBTPRUCC[K+3] ;
  90. END
  91. END
  92.  
  93. GOTO RJMAIN ;
  94. END
  95. TERM
cdc/nos2.source/nam5871/ksttupd.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator