User Tools

Site Tools


cdc:nos2.source:nam5871:kstpage

KSTPAGE

Table Of Contents

  • [00005] PRGM KSTPAGE

Source Code

KSTPAGE.txt
  1. *DECK KSTPAGE
  2. USETEXT NIPDEF
  3. USETEXT KDIS
  4. USETEXT PARAMS
  5. PRGM KSTPAGE;
  6. STARTIMS;
  7. #
  8. *1DC KSTPAGE
  9. *
  10. * 1.PROC NAME AUTHOR DATE
  11. * KSTPAGE M.GIBIAN 84/01/20
  12. *
  13. * 2.FUNCTIONAL DESCRIPTION
  14. *
  15. * PAGE STATUS DISPLAY BY UPDATING VIEW TABLE
  16. *
  17. * 3.METHOD USED
  18. *
  19. * IF PAGE FORWARD, MAKE OLD LAST LINE THE NEW FIRST LINE
  20. * OF DISPLAY
  21. * ELSE
  22. * COMPUTE NEW FIRST LINE BY MOVING KDVWLN-1 LINES BACKWARD
  23. * IN DISPLAY.
  24. *
  25. * 4.ENTRY PARAMETERS
  26. *
  27. * PARAMS1 - 1 = PAGE FORWARD FUNCTION
  28. * 2 = PAGE BACKWARD FUNCTION
  29. *
  30. * 5.OUTPUT PARAMETERS
  31. *
  32. * 6.COMDECKS AND TEXTS USED.
  33. *
  34. * NIPDEF KDIS PARAMS
  35. *
  36. * 7.ROUTINES CALLED.
  37. *
  38. *
  39. * 8.DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  40. *
  41. * MUST FIT IN SECONDARY OVERLAY
  42. *
  43. #
  44. STOPIMS;
  45.  
  46. #
  47.   INPUT PARAMETER
  48. #
  49.  
  50. ITEM TYPE U;
  51.  
  52. #
  53.   EXTERNAL REFERENCES
  54. #
  55. XREF
  56. BEGIN
  57. LABEL RJMAIN;
  58. END
  59.  
  60. BEGIN
  61. TYPE=PARAMS1;
  62. IF TYPE EQ 1 THEN
  63. BEGIN
  64. IF KDLGLST[0] NQ 0 THEN
  65. BEGIN
  66. KDLGLST[0]=KDLGLND[0];
  67. KDESTST[0]=0;
  68. KDAPPST[0]=0;
  69. END
  70. ELSE
  71. IF KDESTST[0] NQ 0 THEN
  72. BEGIN
  73. KDESTST[0]=KDESTND[0];
  74. KDAPPST[0]=0;
  75. END
  76. ELSE
  77. KDAPPST[0]=KDAPPND[0];
  78. END
  79. ELSE
  80. BEGIN
  81. IF KDAPPST[0] NQ 0 THEN
  82. IF KDAPPST[0] GR KDVWLN[0] THEN # USE KDVWLN[0] SO APPL LINES#
  83. # START AT ORIGIN 2, NOT 1 #
  84. KDAPPST[0]=KDAPPST[0]-(KDVWLN[0]-1);
  85. ELSE
  86. KDAPPST[0]=2;
  87. ELSE
  88. IF KDESTST[0] NQ 0 THEN
  89. IF KDESTST[0] GR KDVWLN[0]-1 THEN
  90. KDESTST[0]=KDESTST[0]-(KDVWLN[0]-1);
  91. ELSE
  92. IF KDAPPMX[0] GR KDVWLN[0]-KDESTST[0] THEN
  93. KDAPPST[0]=KDAPPMX[0]-((KDVWLN[0]-KDESTST[0])-1);
  94. ELSE
  95. KDAPPST[0]=2;
  96. ELSE
  97. IF KDLGLST[0] GR KDVWLN[0]-1 THEN
  98. KDLGLST[0]=KDLGLST[0]-(KDVWLN[0]-1);
  99. ELSE
  100. IF KDESTMX[0] GR (KDVWLN[0]-KDLGLST[0])-1 THEN
  101. KDESTST[0]=KDESTMX[0]-((KDVWLN[0]-KDLGLST[0])-1);
  102. ELSE
  103. IF KDAPPMX[0] GR
  104. KDVWLN[0]-KDESTMX[0]-KDLGLST[0] THEN
  105. KDAPPST[0]=KDAPPMX[0]-
  106. ((KDVWLN[0]-(KDESTMX)-KDLGLST[0])-1);
  107. ELSE
  108. KDAPPST[0]=2;
  109. END
  110.  
  111. KDIS$STAT=STM"STM$UPDATE";
  112. KDBLNK=TRUE;
  113. GOTO RJMAIN;
  114. END
  115. TERM
cdc/nos2.source/nam5871/kstpage.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator