Table of Contents

DBGSECT Source

References

Source Listing

DBGSECT.MACRO.txt
  1. MACRO 00001000
  2. DBGSECT &SECT 00002000
  3. AIF ('&SECT' EQ 'CSECT').CSECT 00003000
  4. DBGSECT DSECT 00004000
  5. AGO .CONT 00005000
  6. .CSECT ANOP 00006000
  7. DBGSECT DS 0D 00007000
  8. ENTRY DBGSECT 00008000
  9. .CONT ANOP 00009000
  10. CCWPRINT CCW X'09',0,SILI,133 PRINTER CCW FOR DEBDUMP 00014000
  11. * 00015000
  12. SYMTABLE DS 32D USER DEFINED SYMBOL TABLE 00016000
  13. SYMTBG DC F'0' SYMBOL TABLE ENTRIES @VA01159 00016100
  14. * 00017000
  15. BRKPNTBL DC 16F'0,-1' BREAKPOINT TABLE 00018000
  16. TBLEND DC A(TBLEND) END ADDRESS OF BREAKPOINT TABLE 00019000
  17. * 00020000
  18. * STORAGE AND CONSTANTS FOR NEWLIN AND CONTROL 00021000
  19. * 00022000
  20. DS 0D 00023000
  21. ARGS DS 5D ARGUMENTS STORED HERE 00024000
  22. MVCNT1 EQU *-ARGS NUMBER OF BYTES IN ARGS 00025000
  23. MVCNT EQU MVCNT1-8 NEEDED FOR SET GPR COMMAND 00026000
  24. ARGMAX EQU * END OF ARGUMENT AREA 00027000
  25. JFLAGS DS 6X FLAGS CORRESPONDING TO ARGS 00028000
  26. * 00029000
  27. * ONE FLAG FOR EACH PARAMETER: 00 = NUMERIC (0 - 9) 00030000
  28. * F0 = HEX (A - F, 0 - 9) 00031000
  29. * FF = ALPHABETIC (A - F) 00032000
  30. * 00033000
  31. ARGSCT DS 1X NUMBER OF ARGUMENTS IN COMMAND LINE 00034000
  32. MVCNT2 EQU *-ARGS FOR INITIALIZING TO ZERO 00035000
  33. * 00037000
  34. DS 0D 00037100
  35. WAITRD DC CL8'WAITRD' PARAMETER LIST TO GET INPUT LINE 00038000
  36. DC A(INPUT) A(INPUT BUFFER) 00039000
  37. DC C'U' CLEAN UP AND LOGICAL CARRIAGE RETURN 00040000
  38. DC X'00' 00041000
  39. WTRDCNT DC H'0' BYTE COUNT FILLED IN HERE 00042000
  40. * 00043000
  41. * 00045000
  42. ORG DC F'0' ORIGIN OF ROUTINE BEING EXAMINED 00046000
  43. * 00047000
  44. * THE FOLLOWING VARIABLES ARE USED BY DEBUG AND DEBDUMP 00048000
  45. * 00049000
  46. DEC DS 1D BINARY WORD 00050000
  47. DECDEC DS 1D DECIMAL WORD 00051000
  48. * 00052000
  49. ARGSAV DS 1F STORAGE FOR ARGUMENT LOCATION 00053000
  50. RETSAV DS 1F STORAGE FOR RETURN ADDRESS 00054000
  51. * 00055000
  52. EXAMLC DS 1F FIRST LOCATION TO BE EXAMINED 00056000
  53. EXAMLG DS 1F LENGTH OF FIELD TO BE EXAMINED 00057000
  54. * 00058000
  55. BEGAT DS 1F BEGINNING PARAMETER BEING PROCESSED 00059000
  56. STOPAT DS 1F LAST PARAMETER LOCATION 00060000
  57. * 00061000
  58. LASTLINE EQU DECDEC 32 BYTES FOR LAST LINE DUMPED 00062000
  59. * 00063000
  60. SAVE1 DS 1F DEBDUMP USES FOR LINE COUNT 00064000
  61. SAVE2 DS 1F 00065000
  62. DBGSAV1 DS 16F DEBUG BALR-CALL SAVE @VA01039 00066000
  63. DBGSAV2 DS 16F SAVE AREA FOR CONWAIT/CONREAD @VA01039 00067000
  64. * 00068000
  65. TSYM DS 4F SYMBOL ENTRY 00073000
  66. * 00074000
  67. XPSW DS 1D PSW TO BE LOADED UPON GO 00075000
  68. * 00077000
  69. OUTPT1 DC 1C' ' BYTE COUNT 00078000
  70. LINE DC CL11' ' I/O BUFFER 00079000
  71. LINE1 DC 87X'40' 00080000
  72. LINE1B DC C'*' 00081000
  73. LINE1A DC 32X'40' 00082000
  74. LINE1C DC C'*' 00083000
  75. LINE1D DC X'40' 00084000
  76. DBGOUT EQU LINE OUTPUT BUFFER 00085000
  77. INPUT EQU LINE INPUT BUFFER 00086000
  78. INPUT1 EQU LINE+60 HEX PACK AREA 00087000
  79. * 00088000
  80. CONWR DS 0D PLIST TO TYPE OUTPUT LINE @VA01159 00089000
  81. DC CL8'TYPLIN' @VA01159 00089100
  82. DC AL1(1),AL3(DBGOUT) @VA01159 00089200
  83. DC CL1'B',AL2(0) @VA01159 00089300
  84. CONWRL DC AL1(0) @VA01159 00089400
  85. * 00090000
  86. INPUTSIZ DS 1H SIZE OF TYPED IN INPUT LINE 00091000
  87. DC F'0' 00092000
  88. CONHCT DC X'FAFBFCFDFEFF0000' 00093000
  89. HEX DS 1F BINARY WORD 00094000
  90. DC X'FFFFFFFF' 00095000
  91. HEXHEX DS 2F PRINTER GRAPHIC WORD 00096000
  92. DC X'FF' 00097000
  93. BITS DC X'C0C0C0C0C0C0C0C0' 00098000
  94. ORG *+14 00099000
  95. DC C'0123456789' 00100000
  96. DC C'ABCDEF' 00101000
  97. CONHXT EQU CONHCT-C'A' 00102000
  98. * 00103000
  99. DBGSWTCH DC X'00' INTERNAL DEBUG STATUS FLAGS 00104000
  100. * EQU X'80' UNUSED FLAG @VA01159 00105000
  101. * EQU X'40' UNUSED FLAG @VA01159 00106000
  102. DBDEXIT EQU X'20' SIGNALS EXIT FROM DEBDUMP 00107000
  103. DBDDMSG EQU X'10' SIGNALS DUPLICATE MSG IN DEBDUMP 00108000
  104. DBGSET EQU X'08' SIGNALS SET COMMAND 00109000
  105. DBGPERM EQU X'04' RESERVED FOR FUTURE USE 00110000
  106. DBGCOND EQU X'02' RESERVED FOR FUTURE USE 00111000
  107. EJECT 00112000
  108. * 00113000
  109. * THE FOLLOWING RESERVED FOR FUTURE USE 00114000
  110. * 00115000
  111. YPSW DS D PSW CONTAINING NSI 00116000
  112. TBLINDX DS F CURRENT BRKPT TABLE INDEX 00117000
  113. BCR NOPR 0 NOPR TO PAD DBGXWK WHEN NEEDED 00118000
  114. NOPR 0 ADDITIONAL NOPR (IF NEEDED) 00119000
  115. ILC DS 1C ILC OF INSTRUCTION IN DBGXWK 00120000
  116. ILC11 DC X'06' 3 HALFWORD INSTRUCTION ( 6 BYTES) 00121000
  117. ILC0110 DC X'04' 2 HALFWORD INSTRUCTION ( 4 BYTES) 00122000
  118. ILC00 DC X'02' 1 HALFWORD INSTRUCTION ( 2 BYTES) 00123000
  119. BAL EQU X'45' BAL OP-CODE 00124000
  120. BALR EQU X'05' BALR OP-CODE 00125000
  121. DBGXWK DS 3H RECREATE INSTRUCTION AT BRKPT ADDR 00126000
  122. LPSW 48 GIVE CONTROL TO NSI 00127000
  123. * 00128000
  124. EJECT 00129000
  125. MEND 00130000