User Tools

Site Tools


cdc:nos2.source:nam5871:xtrace

XTRACE

Table Of Contents

  • [00005] TRACE

Source Code

XTRACE.txt
  1. *DECK XTRACE
  2. IDENT XTRACE
  3. ENTRY XTRACE
  4. SST
  5. TITLE TRACE
  6. *#
  7. *1DC XTRACE
  8. *
  9. * 1. PROC NAME AUTHOR DATE
  10. * XTRACE J. J. LYON 75/10/02
  11. *
  12. * 2. FUNCTIONAL DESCRIPTION.
  13. * THIS ROUTINE IS RESPONSIBLE FOR PUTTING THE ADDRESS OF THE
  14. * CALLING ROUTINE IN THE TRACE-TABLE.
  15. *
  16. * 3. METHOD USED.
  17. * A CIRCULAR BUFFER OF CALLER-S ADDRESSES IS UPDATED
  18. *
  19. * 4. ENTRY PARAMETERS.
  20. * ENTRY/EXIT LOCATION CONTAINS CALLER-S ADDRESS(BITS 47-30)
  21. *
  22. * 5. EXIT PARAMETERS. NONE
  23. *
  24. * 6. COMDECKS CALLED.
  25. * INPARU MACDEF
  26. *
  27. * 7. ROUTINES CALLED. NONE
  28. *
  29. * 8. DAYFILE MESSAGES. NONE
  30. *
  31. *#
  32. *CALL MACDEF
  33. *CALL INPARU
  34. IFEQ DEBUG,1
  35. FIRST VFD 60/TBUFF
  36. IN VFD 60/TBUFF
  37. OUT VFD 60/TBUFF
  38. LIMIT VFD 60/TBUFFL
  39. TBUFF BSSZ 128
  40. TBUFFL BSSZ 1
  41. XTRACE BSSZ 1 ENTRY/EXIT
  42. SA1 X1 NAME OF ROUTINE
  43. LX1 30
  44. MX0 30 MASKING UPPER 30 BITS
  45. BX1 -X0*X1 BOTTOM 30 BITS OF NAME WORD
  46. SA5 XTRACE
  47. BX6 X5+X1 X6 = ADDRESS AND NAME OF CALLER
  48. SA4 IN
  49. SA6 X4 PUT CALLER ADDRESS IN TABLE(IN)
  50. SX7 X4+1 ADD 1 TO IN
  51. SA5 LIMIT
  52. IX6 X5-X7
  53. ZR X6,T02 JIF IN = LIMIT
  54. SA7 IN
  55. EQ XTRACE
  56. T02 SA5 FIRST IF IN = LIMIT THEN
  57. BX6 X5 SET IN = FIRST
  58. SA6 IN
  59. EQ XTRACE RETURN
  60. ELSE
  61. XTRACE BSSZ 1
  62. EQ XTRACE
  63. ENDIF
  64. END
cdc/nos2.source/nam5871/xtrace.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator