User Tools

Site Tools


cdc:nos2.source:opl871:taro

Table of Contents

TARO

Table Of Contents

  • [00004] TARO - TERMINAL ARGUMENT OPERATIONS.
  • [00020] TERMINAL ARGUMENT OPERATIONS.

Source Code

TARO.txt
  1. IDENT TARO
  2. ENTRY TARO
  3. SYSCOM B1
  4. TITLE TARO - TERMINAL ARGUMENT OPERATIONS.
  5. *COMMENT TARO - TERMINAL ARGUMENT OPERATIONS.
  6. COMMENT COPYRIGHT CONTROL DATA SYSTEMS INC. 1992.
  7. SPACE 4
  8. ***** TARO - TERMINAL ARGUMENT OPERATIONS.
  9. *
  10. * J. C. BOHNHOFF. 72/08/31.
  11. * W. E. MARTIN. 78/09/30.
  12. SPACE 4
  13. * COMMON TEXTS.
  14.  
  15.  
  16. *CALL COMCMAC
  17. *CALL COMKMAC
  18. *CALL COMSPRD
  19. SPACE 4,45
  20. *** TARO - TERMINAL ARGUMENT OPERATIONS.
  21. *
  22. * ENTRY FORMAT -
  23. *
  24. * FORTRAN EXTENDED -
  25. *
  26. * CALL TARO ( VALUE, MASK, TERM, RETURN )
  27. *
  28. * COBOL -
  29. *
  30. * ENTER TARO USING VALUE, MASK, TERM, RETURN.
  31. *
  32. * WHERE - (VALUE) = A 24 BIT VALUE TO BE USED TO ALTER TERMINAL
  33. * USER ARGUMENT AREA.
  34. *
  35. * MASK - A VALUE TAKEN AS A BINARY MASK - ONLY THE
  36. * LOWEST 24 BITS ARE USED.
  37. *
  38. * TERM - THE NAME OF THE TERMINAL FOR WHICH THE
  39. * OPERATION IS TO BE DONE. IF ABSENT OR ZERO, IT IS
  40. * IS ASSUMNED THE TERMINAL THAT ORIGINED THE CALLING
  41. * TRANSACTION, AND THE NAME MAY BE 1 - 7 CHARACTERS,
  42. * LEFT JUSTIFIED BINARY ZERO FILLED, OR LEFT-JUSTIFIED
  43. * BLANK FILLED.
  44. *
  45. * RETURN - LOCATION IN WHICH TO PLACE THE RESULTANT
  46. * USER ARGUMENT BITS. THIS VALUE IS ALSO RETURNED
  47. * AS THE VALUE OF A FORTRAN FUNCTION. (OPTIONAL).
  48. *
  49. * NOTES -
  50. *
  51. * THE *USER ARGUMENT* AREA (24 BITS IN EACH TERMINAL TABLE
  52. * ENTRY) IS OPERATED UPON AS FOLLOWS -
  53. *
  54. * RETURN = USER ARG = (USER ARG .AND. MASK) .XOR. VALUE.
  55. *
  56. * SEE *TAF* LISTING FOR FORMAT OF TERMINAL-TABLE ENTRIES.
  57. *
  58. * USES A - 1, 2, 3, 5, 6, 7.
  59. * X - ALL.
  60. * B - 1.
  61. * CALLS ZFN.
  62. *
  63. * MACROS TARO.
  64.  
  65.  
  66. VFD 42/0LTARO,18/TARO
  67.  
  68. TAR3 SA1 TARB RESTORE (A0)
  69. SA0 X1+
  70.  
  71. TARO SUBR ENTRY/EXIT
  72. SX6 A0 SAVE (A0)
  73. SA2 X1 READ VALUE
  74. SA6 TARB
  75. SB1 1
  76. SA3 A1+B1 READ MASK ADDRESS
  77. BX5 X5-X5 ASSUME NO RETURN
  78. SA4 A1+2 READ TERMINAL NAME ADDRESS
  79. MX0 -24
  80. SA3 X3 READ MASK
  81. ZR X4,TAR1 IF NO TERMINAL NAME OR RETURN ADDRESS
  82. SA5 A4+1 RETURN ADDRESS
  83. SA4 X4 READ TERMINAL NAME
  84. UX6 X4
  85. NZ X6,TAR1 IF NOT DEFAULT ORIGINATING TERMINAL
  86. BX4 X4-X4
  87. TAR1 MX6 42
  88. BX2 -X0*X2 (X2) = VALUE
  89. BX4 X6*X4 (X4) = TERMINAL NAME
  90. LX2 30 POSITION VALUE
  91. BX5 -X6*X5 (X5) = RETURN
  92. BX3 -X0*X3 (X3) = MASK
  93. BX7 X2+X3 (X7) = VALUE AND MASK
  94. BX1 X4
  95. SA7 TARA+1
  96. ZR X4,TAR2 IF ORIGINATING TERMINAL
  97. RJ ZFN ZERO FILL NAME
  98. TAR2 IX6 X1+X5 (X6) = TERMINAL NAME AND RETURN ADDRESS
  99. SA6 TARA STORE ARGUMENT WORD
  100. TARO A6 ISSUE REQUEST TO EXECUTIVE
  101. ZR X5,TAR3 IF NO RETURN VALUES DESIRED
  102. SA1 X5 READ RETURN VALUE
  103. BX6 X1 (X6) = FUNCTION RETURN
  104. EQ TAR3 RESTORE (A0) AND RETURN
  105.  
  106. TARA CON 0 STORAGE FOR *TARO* ARGUMENTS
  107. CON 0
  108. TARB CON 0 STORAGE FOR (A0)
  109. SPACE 4
  110. * COMMON DECK.
  111.  
  112. *CALL COMKZFN
  113. SPACE 4
  114. END
cdc/nos2.source/opl871/taro.txt ยท Last modified: 2023/08/05 17:24 by Site Administrator