User Tools

Site Tools


cdc:nos2.source:nam5871:ns_tkd

NS$TKD

Table Of Contents

  • [00006] PROC NS$TKD(KDBLK,BLKSIZE,BLKLC)
  • [00008] NS$TKD - MOVE DATE TO K-DISPLAY TSB.
  • [00012] MOVE DATA TO K-DISPLAY TSB.
  • [00046] PROC NS$DBG
  • [00052] PROC EXINCSZ
  • [00053] PROC MOVEI
  • [00054] PROC MOVEOK

Source Code

NS$TKD.txt
  1. *DECK NS$TKD
  2. USETEXT COM$NS
  3. USETEXT KDS$NS
  4. USETEXT LIN$NS
  5.  
  6. PROC NS$TKD(KDBLK,BLKSIZE,BLKLC); # MOVE DATA TO K-DISPLAY TSB #
  7.  
  8. # TITLE NS$TKD - MOVE DATE TO K-DISPLAY TSB. #
  9.  
  10. BEGIN # NS$TKD #
  11. #
  12. ** NS$TKD - MOVE DATA TO K-DISPLAY TSB.
  13. *
  14. * J.C. LEE 1981
  15. *
  16. * THIS ROUTINE MOVES DATA TO K-DISPLAY TSB.
  17. *
  18. * PROC NS$TKD(KDBLK,BLKSIZE,BLKLC)
  19. *
  20. * ENTRY:
  21. * KDBLK - FWA OF K-DISPLAY DATA BLOCK.
  22. * BLKSIZE - K-DISPLAY DATA BLOCK SIZE IN CM WORDS.
  23. * BLKLC - K-DISPLAY DATA BLOCK LINE COUNT.
  24. *
  25. * EXIT:
  26. * NONE.
  27. *
  28. * METHOD:
  29. * INCREASE K-DISPLAY TSB SIZE BY BLKSIZE.
  30. * MOVE DATA BLOCK TO K-DISPLAY TSB.
  31. * INCREMENT K-DISPLAY LINE COUNT BY BLKLC.
  32. * INCREMENT K-DISPLAY WORD COUNT BY BLKSIZE.
  33. *
  34. #
  35.  
  36. ARRAY KDBLK; # K-DISPLAY DATA BLOCK #
  37. BEGIN
  38. ITEM KDWORD U(0,0,60);
  39. END
  40. ITEM BLKSIZE U; # K-DISPLAY DATA BLOCK SIZE IN CM WORDS #
  41. ITEM BLKLC U; # K-DISPLAY DATA BLOCK LINE COUNT #
  42.  
  43. $BEGIN
  44. XREF
  45. BEGIN
  46. PROC NS$DBG; # TRACE PROCEDURE CALL #
  47. END
  48. $END
  49.  
  50. XREF
  51. BEGIN
  52. PROC EXINCSZ; # INCREASE TSB SIZE #
  53. PROC MOVEI; # MOVE DATA BLOCK #
  54. PROC MOVEOK; # ALLOW TSB TO MOVE #
  55. END
  56.  
  57. ITEM KDSTSBN U; # TSB NUMBER OF K-DISPLAY BUFFER #
  58. ITEM TSBFWA U; # TSB FWA #
  59.  
  60. CONTROL EJECT;
  61.  
  62. $BEGIN
  63. NS$DBG("TKD"); # TRACE CALL #
  64. $END
  65.  
  66. KDSTSBN = DCW$KDBTSB[0]; # TSB NUMBER OF K-DISPLAY TSB #
  67. EXINCSZ(BLKSIZE,TSBFWA,KDSTSBN); # INCREASE K-DISPLAY TSB SIZE #
  68. P<KDS$BUFFER> = TSBFWA; # FWA OF K DISPLAY BUFFER #
  69. P<LIN$HEADER> = TSBFWA + KDB$WC[0]; # FWA OF DATA BLOCK IN TSB #
  70. MOVEI(BLKSIZE,LOC(KDBLK),P<LIN$HEADER>); # MOVE DATA BLOCK TO TSB#
  71. KDB$LC[0] = KDB$LC[0] + BLKLC; # INCREMENT K-DISPLAY LINE COUNT#
  72. KDB$WC[0] = KDB$WC[0] + BLKSIZE; # INCREMENT K-DISPLAY WORD COUNT#
  73. MOVEOK(KDSTSBN); # ALLOW K-DISPLAY TSB TO MOVE #
  74.  
  75. DCW$F$SKD[0] = TRUE; # REQUEST SEND K-DISPLAY DATA #
  76.  
  77. RETURN;
  78. END # NS$TKD #
  79. TERM
cdc/nos2.source/nam5871/ns_tkd.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator