User Tools

Site Tools


cdc:nos2.source:nam5871:ikdis

Table of Contents

IKDIS

Table Of Contents

  • [00008] PROC IKDIS
  • [00052] PROC MGETS
  • [00053] PROC CONSOL
  • [00054] FUNC CSTATUS
  • [00055] PROC OMSG
  • [00056] PROC OVLCALL

Source Code

IKDIS.txt
  1. *DECK IKDIS
  2. USETEXT KDIS
  3. USETEXT DRHDR
  4. USETEXT DISTAIL
  5. USETEXT NIPDEF
  6. USETEXT OVERLAY
  7. USETEXT KINITBF
  8. PROC IKDIS; # INITIAL K-DISPLAY BUFFERS AND POINTERS #
  9. STARTIMS;
  10. #
  11. *1DC IKDIS
  12. *
  13. * 1. PROC NAME AUTHOR DATE
  14. * IKDIS A. BEN-ARTZI 81/11/06
  15. *
  16. * 2. FUNCTIONAL DESCRIPTION.
  17. * THIS ROUTINE INITIALIZE THE K-DISPLAY FOR NAM,THE INVOLVING
  18. * COMMON BLOCKS AND THE BASIC SCREEN.
  19. *
  20. * 3. METHOD USED.
  21. * GET A BUFFER AND INITIALIZE IT AS A BASIC SCREEN.
  22. * SET POINTERS TO POINT TO BUFFERS.
  23. * CALL MACRO CONSOLE TO INITIATE K-DISPLAY.
  24. * CALL MACRO MESSAGE TO CLEAR FLUSHING MESSAGE FROM B-DISPLAY.
  25. *
  26. * 4. ENTRY PARAMETERS. NONE
  27. *
  28. * 5. EXIT PARAMETERS. NONE
  29. *
  30. * 6. COMDECKS CALLED + SYMPL TEXT USED.
  31. * KDIS DISTAIL
  32. * NIPDEF KINITBF DRHDR
  33. *
  34. *
  35. *
  36. *
  37. * 7. ROUTINES CALLED
  38. * OMSG OUTPUT DAYFILE MESSAGE
  39. * MGETS ALLOCATE INITIAL BUFFER
  40. * CSTATUS GET CONSOLE TYPE FROM SYSTEM
  41. * CONSOL CALL SYSTEM MACRO-S
  42. * OVLCALL CALL OVERLAY
  43. *
  44. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  45. * THIS PROCEDURE IS CALLED BY INIP.
  46.  #
  47. STOPIMS;
  48. #
  49.   EXTERNAL VARIABLES
  50. #
  51. XREF BEGIN
  52. PROC MGETS; #GET BUFFER #
  53. PROC CONSOL; #CALL SYSTEM MACRO #
  54. FUNC CSTATUS; #CALL SYSTEM CSTATUS MACRO #
  55. PROC OMSG ;
  56. PROC OVLCALL;
  57. END
  58. # A BASIC BLANK LINE #
  59. ITEM INDEX U ;
  60. ITEM KADDR U ;
  61. ITEM KBLANK C(10) = O"55555555555555550000" ;
  62. ITEM ENDLOOP I = 0 ;
  63. ITEM LAST I = 0 ;
  64. ARRAY KBLNK S(1);
  65. BEGIN
  66. ITEM KZEROS C(00,00,60) = [0]; # ZERO LINE TO BLANK B DISPLAY#
  67. END
  68.  
  69. ARRAY CTYPE S(1);
  70. BEGIN
  71. ITEM CONTYPE U(0,0,12); # ACTUAL CONSOLE TYPE FIELD #
  72. ITEM CONWRD U(0,0,WL)=[0]; # FULL WORD CONSOLE TYPE PARAM#
  73. END
  74.  
  75. BEGIN
  76.  
  77. #
  78.   FIRST, DETERMINE CONSOLE TYPE AND SET KDIS TO REFLECT IT
  79. #
  80. CONWRD=CSTATUS;
  81. IF CONTYPE EQ 0 THEN
  82. KLSIZE[0]=KBF545;
  83. ELSE
  84. KLSIZE[0]=KBF721;
  85. KRSIZE[0]=KLSIZE[0]+4;
  86. KDVWLN[0]=KLSIZE[0]-7;
  87. #
  88.   GET A BUFFER AND FORMAT IT
  89. #
  90. MGETS(KLSIZE+BLKHSIZE+KHDRSIZE,KADDR,TRUE);
  91. #
  92.   AND SET THE K-DISPLAY BLOCK HEADER
  93. #
  94. P<DRHDRWD> = KADDR ;
  95. BLKID[0] = KDISIDVALUE ;
  96. BACKPTR[0] = LOC(KDBP[0]) ;
  97. NEXTPTR[0] = LOC(KDFP[0]) ;
  98. # #
  99. P<KINITBF> = 0 ;
  100. ENDLOOP = KLSIZE[0] + KADDR + BLKHSIZE + KHDRSIZE - KERRL - 3;
  101. KDTYPE[KADDR+BLKHSIZE] = KDISTYPE ;
  102. # #
  103. FOR INDEX = KADDR+BLKHSIZE+KHDRSIZE STEP 1 UNTIL ENDLOOP DO
  104. BEGIN
  105. KWORD[INDEX] = KBLANK ;
  106. END
  107. #
  108.   FILL THE ERROR LINE WITH BLANKS
  109. #
  110. KERROR[ENDLOOP+1] = " ";
  111. KWORD[ENDLOOP+KERRL]=KBLANK; # TERMINATE WORD WITH BLANK #
  112. LAST = KADDR + BLKBS[0] - 1 ;
  113. K311[LAST-1] = " ";
  114. KREADY[LAST-1]="READY..";
  115. K312[LAST-1] = 0 ;
  116. #
  117.   SET A POINTER TO DISTAIL COMMON BLOCK
  118. #
  119. KDSTAIL[LAST] = LOC(KDTLNAM)+1;
  120. K7777[LAST] = O"7777" ;
  121. #
  122.   SET FIELDS IN KDIS COMMON BLOCK
  123. #
  124. KDKBUF[0] = LOC(KBUF1) ;
  125. KDRSCR[0] = LOC(KDRCONSL) ;
  126. KDLSCR[0] = LOC(KDLCONSL) ;
  127. KDLSTOP[0] =KADDR+BLKHSIZE+KHDRSIZE;
  128. KDFP[0] = KADDR ;
  129. KDBP[0] = KADDR ;
  130. KDRNXT[0] = 1;
  131.  
  132. #
  133.   FIELDS ARE PREPARED FOR CONSOLE MACRO.
  134.   HEADER WORD CONTAINS - TYPE-IN ADDR,RIGHT SCREEN,LEFT SCREEN
  135. #
  136. CONSOL(KDWDCON) ;
  137. OMSG(KBLNK,2) ; # AND CLEAR THE B DISPLAY #
  138. KDIS$RT = KDST[0] AND KFAST[0];
  139.  
  140. RETURN;
  141. END
  142. TERM
cdc/nos2.source/nam5871/ikdis.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator