User Tools

Site Tools


ibm:vm370-lib:macro:adt.macro_src

ADT Source

References

Source Listing

ADT.MACRO.txt
  1. MACRO 00001000
  2. ADT 00002000
  3. PUSH PRINT 00002200
  4. AIF ('&SYSPARM' NE 'SUP').ACC01 00002400
  5. PRINT OFF,NOGEN 00002600
  6. .ACC01 ANOP 00002800
  7. * 00003000
  8. * ACTIVE DISK TABLE BLOCK 00004000
  9. * 00005000
  10. ADTSECT DSECT 00006000
  11. * 00007000
  12. * NEEDED FOR READ-ONLY DISKS AND READ-WRITE DISKS 00008000
  13. * 00009000
  14. ADTID DS CL6 DISK-IDENTIFIER (LABEL) 00010000
  15. ADTFLG3 DS 1X THIRD FLAG BYTE 00011100
  16. ADTFTYP DS 1X FILETYPE FLAG-BYTE 00012000
  17. ADTPTR DS 1A POINTER TO NEXT ADT BLOCK IN CHAIN 00013000
  18. ADTDTA DS 1A DEVICE TABLE ADDRESS IN NUCON 00014000
  19. ADTFDA DS 1A FILE DIRECTORY (PSTAT) ADDRESS 00015000
  20. ADTMFDN DS 1F (1) NUMBER DBL-WORDS IN MFD 00016000
  21. ADTMFDA DS 1A (2) MASTER FILE DIRECTORY ADDRESS 00017000
  22. OSADTVTA DS 0F VTOC ADDRESS OF O/S PACK 00018000
  23. ADTHBCT DS 1F FST HYPERBLOCK COUNT 00019000
  24. ADTFSTC DS 1F NUMBER OF FST 40-BYTE ENTRIES (FILES) 00020000
  25. OSADTFST DS 0F ADDRESS OF 1ST. O/S FST 00021000
  26. ADTCHBA DS 1A (1) POINTER TO CURRENT FST HYPERBLOCK 00022000
  27. OSADTVTB DS 0F UPPER VTOC ADDR OF O/S PACK 00023000
  28. ADTCFST DS 1F (2) DISPLACEMENT OF CURRENT FST ENTRY 00024000
  29. ADT1ST DS 1F (1) DISP. OF 1ST WORD IN BIT-MASK WITH 'HOLE' 00025000
  30. OSADTDSK DS 0F O/S DISK ADDRESS (CUU) 00026000
  31. ADTNUM DS 1F (2) NUMBER OF RECORDS (NUMTRKS) 00027000
  32. OSADTSV1 DS 0F SAVE AREA 00028000
  33. ADTUSED DS 1F (3) NUMBER OF RECORDS IN USE (QTUSEDP) 00029000
  34. ADTLEFT DS 1F (4) NUMBER OF RECORDS LEFT (QTLEFTP) 00030000
  35. ADTLAST DS 1F (5) DISP. OF LAST NONZERO BYTE IN BIT-MASK 00031000
  36. ADTCYL DS 1F (6) NUMBER OF CYLINDERS ON DISK (NUMCYLP) 00032000
  37. ADTM DS 1C MODE LETTER (A,B,C,...,S,Y, ETC.) 00033000
  38. ADTMX DS 1C EXTENSION-OF-MODE LETTER (A,B,C, ETC.) 00034000
  39. ADTFLG1 DS 1X FIRST FLAG-BYTE 00035000
  40. ADTFLG2 DS 1X SECOND FLAG BYTE 00036000
  41. * 00037000
  42. ADT2ND DS 0D 00038000
  43. * 00039000
  44. * NEEDED PRIMARILY FOR READ-WRITE DISKS 00040000
  45. * (ADTLHBA & ADTLFST APPLY TO ALL CMS DISKS EXCEPT S-DISK) 00040100
  46. * 00041000
  47. ADTMSK DS 1A 800-BYTE (PQMSK) BIT-MASK ADDRESS 00042000
  48. ADTQQM DS 1A 200-BYTE (PQQMSK) BIT-MASK ADDRESS 00043000
  49. ADTPQM1 DS 1F (1) PQMSIZ = NO. BYTES IN PQMSK > 215 00044000
  50. ADTPQM2 DS 1F (2) PQMNUM = NO. 800 BYTE-REC FOR PQMSK 00045000
  51. ADTPQM3 DS 1F (3) R0NUM = NO. DBL-WORDS IN PQMSK 00046000
  52. ADTLHBA DS 1A (1) POINTER TO LAST FST HYPER-BLOCK 00047000
  53. ADTLFST DS 1F (2) DISP. OF LAST FST IN LAST HYPER-BLOCK 00048000
  54. ADTNACW DS 1H NUMBER OF ACTIVE WRITE FILES - HALFWORD 00049000
  55. ADTRES DS 1H RESERVE-COUNT (RESRVCNT) - HALFWORD 00050000
  56. * 00051000
  57. ADTXNREC DS 1F (1) NO. DBL WORDS OF EXTRA CHAIN LINK RECORDS 00051100
  58. ADTXAREC DS 1F (2) ADDR OF BLOCK OF EXTRA CHAIN LINK RECORDS 00051200
  59. * 00051300
  60. ADTLBM EQU ADT2ND-ADTSECT LENGTH OF MINIMUM ADT BLOCK (BYTES) 00052000
  61. ADTLDM EQU ADTLBM/8 LENGTH OF MINIMUM ADT BLOCK IN DBL-WORDS 00053000
  62. * 00054000
  63. ADTLB EQU *-ADTSECT LENGTH OF FULL ADT BLOCK (BYTES) 00055000
  64. ADTLD EQU (ADTLB+7)/8 LENGTH OF FULL ADT BLOCK IN DBL-WORDS 00056000
  65. * 00057000
  66. * FIRST FLAG-BYTE (ADTFLG1) DEFINITIONS 00058000
  67. * 00059000
  68. ADTFSF EQU X'80' ADT BLOCK IN FREE STORAGE 00060000
  69. ADTFRO EQU X'40' CMS READ-ONLY DISK (ATTACHED & READY) 00061100
  70. ADTFRW EQU X'20' CMS READ-WRITE DISK (ATTACHED & READY) 00062100
  71. ADTFFSTF EQU X'10' 1ST FST HYPERBLOCK IS IN FREE STORAGE 00063000
  72. ADTFFSTV EQU X'08' FST HYPERBLOCKS ARE OF VARYING LENGTH 00064000
  73. ADTFQQF EQU X'04' 200-BYTE QQMSK IS IN FREE STORAGE 00065000
  74. ADTROX EQU X'02' THIS DISK HAS READ-ONLY EXTENSION(S) 00066000
  75. ADTFMIN EQU X'01' ADT BLOCK IS MINIMUM SIZE 00067000
  76. * 00068000
  77. * SECOND FLAG-BYTE (ADTFLG2) DEFINITIONS 00069000
  78. * 00070000
  79. ADTFMFD EQU X'80' MFD IS IN CORE 00071000
  80. ADTFALNM EQU X'40' ALL FILENAMES ARE IN CORE 00072000
  81. ADTFALTY EQU X'20' ALL FILETYPES ARE IN CORE 00073000
  82. ADTFMDRO EQU X'10' MODES 1-5 ARE IN CORE 00074100
  83. ADTFALMD EQU ADTFMDRO+X'08' ALL MODES (0-5) ARE IN CORE 00075100
  84. ADTFALUF EQU ADTFMFD+ADTFALNM+ADTFALTY+ADTFALMD ALL UFD IS IN CORE 00076000
  85. ADTPSTM EQU X'02' ADT PSTAT CHAIN MODIFIED N3220 00078000
  86. ADTFROS EQU X'04' INDICATES THIS IS AN OS DISK N3220 00079000
  87. ADTFDOS EQU X'01' INDICATES THIS IS A DOS DISK 00080000
  88. * 00081000
  89. * THIRD FLAG-BYTE (ADTFLG3) DEFINITIONS 00081100
  90. ADTFUPD1 EQU X'80' 1ST HALF OF "UPDISK" HAS BEEN CALLED 00081200
  91. ADTFXCHN EQU X'40' EXTRA CHAIN LINK(S) NEED TO BE RETURNED 00081300
  92. ADTFRWOS EQU X'20' READ-WRITE OS OR DOS DISK 00081350
  93. ADTFSORT EQU X'10' ALL FST HYPERBLOCKS & FST ENTRIES SORTED 00081400
  94. ADTFORCE EQU X'08' CMS/DOS/OS DISK FORCED READ-ONLY 00081500
  95. ADTFNOAB EQU X'04' FOR DMSAUD - DON'T ABEND IF DISK ERROR 00081600
  96. ADTFZERO EQU X'01' ACCESS MODE 0 HRC010DS 00081650
  97. * 00081700
  98. * OTHER PARAMETERS 00082000
  99. * 00083000
  100. ADTRL EQU 800 LOGICAL RECORD LENGTH 00084000
  101. ADTMXBML EQU 10 MAX BIT MAP LENGTH (NO. RECORDS) FOR 3330 00085100
  102. * 00086000
  103. * NUCON DEVICE TABLE OFFSETS 00087000
  104. * 00088000
  105. DTAD EQU 0 DEVICE NUMBER 00089000
  106. DTADT EQU 3 DEVICE TYPE BYTE 00090000
  107. DTAS EQU 4 SYMBOLIC DEVICE NAME 00091000
  108. EJECT 00092000
  109. POP PRINT 00092100
  110. MEND 00093000
ibm/vm370-lib/macro/adt.macro_src.txt ยท Last modified: 2023/08/06 13:37 by Site Administrator