home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol099 / zex.zex < prev   
Text File  |  1984-04-29  |  4KB  |  170 lines

  1. ;
  2. ;   ZEX 1.0 Installation ZEX File, 11-12-82, by Richard Conn
  3. ;
  4. ;    You will need the following files in order to assemble ZEX:
  5. ;        MAC.COM        ZSID.COM    ED.COM        RELS.UTL
  6. ;    Type <CR> if you have them on this disk or type ^C to abort -- ^/
  7. ;
  8. ;    ^*ZEX 1.0 Installation Begins^*
  9. ;
  10. ;    1. ERASE ANY FILES FROM PREVIOUS .SUB EXECUTIONS
  11. ;
  12. ERA ZEX*.BAK
  13. ERA ZEX*.HEX
  14. ERA ZEX*.SYM
  15. ;
  16. ;    2. USE CPM 2.2 XSUB (not required if using previous version of ZEX)
  17. ;
  18. ;XSUB
  19. ;
  20. ;    3. CREATE ZEX10.LIB FOR ASSEMBLY OF ORG 0 RELOCATED CODE SEGMENT
  21. ;
  22. ED ZEX10.LIB
  23. #A
  24. #K
  25. I
  26. BASE EQU FALSE ;SUPPRESS ZEX INITIATOR CODE (ENABLE RELOCATED CODE)
  27. REL EQU 0 ;SET RELOCATED CODE SEGMENT TO ORG 0
  28. ^Z
  29. E
  30. ;
  31. ;    4. ASSEMBLE ONLY ORG 0 RELOCATED CODE SEGMENT
  32. ;
  33. MAC ZEX $$PZ
  34. ;
  35. ;    5. RENAME STEP 4 FILES
  36. ;
  37. REN ZEX100.HEX=ZEX.HEX
  38. REN ZEX100.SYM=ZEX.SYM
  39. ;
  40. ;    6. CHANGE ZEX10.LIB FOR ASSEMBLY OF ORG 100H RELOCATED CODE SEGMENT
  41. ;
  42. ED ZEX10.LIB
  43. #A
  44. #K
  45. I
  46. BASE EQU FALSE ;SUPPRESS ZEX INITIATOR CODE (ENABLE RELOCATED CODE)
  47. REL EQU 0100H ;SET RELOCATED CODE SEGMENT TO ORG 0+100H
  48. ^Z
  49. E
  50. ;
  51. ;    7. ASSEMBLE ONLY ORG 100H RELOCATED CODE SEGMENT
  52. ;
  53. MAC ZEX $$PZ SZ
  54. ;
  55. ;    8. RENAME STEP 7 FILE
  56. ;
  57. REN ZEX101.HEX=ZEX.HEX
  58. ;
  59. ;    9. CHANGE ZEX10.LIB FOR ASSEMBLY OF ZEX INITIATOR CODE ONLY
  60. ;
  61. ED ZEX10.LIB
  62. #A
  63. #K
  64. I
  65. BASE EQU TRUE ;ENABLE ZEX INITIATOR CODE (SUPPRESS RELOCATED CODE)
  66. REL EQU 0 ;RESET RELOCATED CODE SEGMENT TO ORG 0
  67. ^Z
  68. E
  69. ;
  70. ;    10. ASSEMBLE ZEX INITIATOR CODE ONLY
  71. ;
  72. MAC ZEX $$PZ
  73. ;
  74. ;    11. USE SID AND RELS.UTL TO CREATE ZEX.COM
  75. ;
  76. ;        [note: If only REL.UTL is available, comment out the lines
  77. ;           starting with IZEX.COM below and change the line
  78. ;           SID RELS.UTL to SID REL.UTL and a SAVE 10 ZEX.COM
  79. ;           must be added at the end of this file.]
  80. ;
  81. ;        ZEX.HEX  contains ZEX Initiator Code
  82. ;        ZEX.SYM  contains symbols for SID for ZEX Initiator Code
  83. ;
  84. ;        ZEX100.HEX contains ZEX ORG 0 Relocated Code Segment
  85. ;        ZEX100.SYM contains symbols for SID for ZEX ORG 0 Relocated Code
  86. ;
  87. ;        ZEX101.HEX contains ZEX ORG 100H Relocated Code Segment
  88. ;
  89. ;        BEGREL  is the symbol for the start of the Relocated Code
  90. ;            Segment in ZEX.COM
  91. ;
  92. ;        DRVERL  is the symbol for the length of the Relocated Code
  93. ;            Segment
  94. ;
  95. ;        DRVL8   is the symbol for the length of the storage required
  96. ;            for the relocation table bit map to be created by
  97. ;            RELS.UTL
  98. ;
  99. ;        RELOCL  is the symbol for the DW in ZEX.COM that will contain
  100. ;            the length of the Relocated Code Segment
  101. ;
  102. ;
  103. ;    A.  SID is invoked and the .SYM files for the ORG 0 Relocated Code
  104. ;        Segment and the Initiator Code Segment are loaded.
  105. ;
  106. ;    B.  The DW at symbol RELOCL is updated with the value of DRVERL
  107. ;        from the ORG 0 Relocated Code Segment.
  108. ;
  109. ;    C.  Memory for the two copies of the Relocated Code Segment
  110. ;        (ORG 0 and ORG 100H) and the relocation table bit map is zeroed.
  111. ;
  112. ;    D.  The ORG 0 Relocated Code Segment is loaded starting at
  113. ;        location BEGREL.
  114. ;
  115. ;    E.  The ORG 100H Relocated Code Segment is loaded after the
  116. ;        segment loaded in step C plus the length of the relocation
  117. ;        table bit map.
  118. ;
  119. ;    F.  RELS.UTL routine SETADRS sets the starting addresses of
  120. ;        the two Relocated Code Segments for creation of the relocation
  121. ;        table bit map.
  122. ;
  123. ;    G.  RELS.UTL routine SETLEN sets the length of the Relocated
  124. ;        Code Segment and builds the relocation table bit map.
  125. ;
  126. ;      *H.  RELS.UTL routine SAVE saves the EX Initiator Code Segment,
  127. ;        the ORG 0 Relocated Code Segment, and the relocation table
  128. ;        bit map created by RELS.UTL.
  129. ;
  130. ;       * [note: not used if only REL.UTL is available]
  131. ;
  132. ;    I.  CP/M is returned to by G0.
  133. ;
  134. ;     **J.  SAVE 10 ZEX.COM saves the ZEX Initiator Code Segment,
  135. ;        the ORG 0 Relocated Code Segment, and the relocation table
  136. ;        bit map created by REL.UTL.
  137. ;
  138. ;      ** [note: used ONLY if REL.UTL is used]
  139. ;
  140. ZSID RELS.UTL
  141. IZEX.HEX ZEX100.SYM
  142. R
  143. I* ZEX.SYM
  144. R
  145. SW.RELOCL
  146. .DRVERL
  147. .
  148. F.BEGREL .BEGREL+.DRVERL+.DRVL8+.DRVERL 0
  149. IZEX100.HEX
  150. R.BEGREL
  151. IZEX101.HEX
  152. R.BEGREL+.DRVERL+.DRVL8-100
  153. C.SETADRS .BEGREL .BEGREL+.DRVERL+.DRVL8
  154. C.SETLEN .DRVERL .BEGREL+.DRVERL
  155. IZEX.COM
  156. C.SAVE 100 .BEGREL+.DRVERL+.DRVL8
  157. G0
  158. ;
  159. ;SAVE 10 ZEX.COM (only if using REL.UTL)
  160. ;
  161. ;    12.  CLEAN UP FILES ON DISK
  162. ;
  163. ERA ZEX*.BAK
  164. ERA ZEX*.HEX
  165. ERA ZEX*.SYM
  166. ERA ZEX10.LIB
  167. ;
  168. ;    ZEX.COM is now ready for execution.
  169. ;
  170.