home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / uploads / zzap21.lbr / Z3BASE.LZB / Z3BASE.LIB
Encoding:
Text File  |  1993-06-07  |  4.0 KB  |  112 lines

  1. ; Z3BASE.LIB - ZCPR 3.3 System Segment Address Module
  2. ;--------------------------------------------------------------------
  3. ;
  4. ;    Address Range    Size    Function
  5. ;    -------------    ----    --------
  6. ;
  7. ;    *   0 -   FF     256 B    Standard CP/M Buffers
  8. ;      100 - BDFF   48384 B    Transient Program Area         (TPA)
  9. ;    *BE00 - C5FF    2048 B    ZCPR 3.3 Command Processor    (CCP)
  10. ;    *C600 - D3FF    3584 B    Z80DOS                (BDOS)
  11. ;    *D400 - EFFF    7168 B    BIOS.SYS             (BIOS)
  12. ;     F000 - F7FF    2048 B    Resident Command Package    (RCP)
  13. ;     F800 - F9FF     512 B    Flow Command Package        (FCP)
  14. ;      FA00 - FAFF     256 B    Memory-Based Named Directories    (NDR)
  15. ;    *FB00 - FB7F     128 B    ZCPR3 Shell Stack        (SHELL)
  16. ;    *FB80 - FBCF      80 B    ZCPR3 Message Buffers        (MSG)
  17. ;    *FBD0 - FBF3      36 B    ZCPR3 External FCB        (EFCB)
  18. ;    *FBF4 - FBFE      11 B    ZCPR3 External Path        (PATH)
  19. ;     FBFF           1 B    Wheel Byte            (WHL)
  20. ;      FC00 - FD7F     384 B    Command Input Package        (CIP)
  21. ;     FD80 - FDFF     128 B    CIP Macros            (CIPM)
  22. ;    *FE00 - FEFF     256 B    Environment Descriptor
  23. ;                Bytes 00H - 7FH:  Z3 Parameters    (ENV)
  24. ;                Bytes 80H - FFH:  Z3TCAP    (TCAP)
  25. ;    *FF00 - FFCF    208 B    Multiple Command Line Buffer    (MCLB)
  26. ;    *FFD0 - FFFF     48 B    ZCPR3 External Stack        (STACK)
  27. ;
  28. ;    * - These segments are REQUIRED by ZCPR 3.3
  29. ;--------------------------------------------------------------------
  30. ;
  31. ; The ZCPR 3.3 (CCP) implementation has the following commands:
  32. ;
  33. ;    GET  JUMP  LIST  NOTE  SAVE  TYPE
  34. ;
  35. ; The Resident Command Package (RCP) has the following commands:
  36. ;
  37. ;    H(elp)  CLS  DIR  ERA  P(eek)  PROT  REG  REN  SP(ace)
  38. ;    TST  TIME (Z33.RCP) or PORT (Z33B.RCP)
  39. ;
  40. ; The Flow Command Package (FCP) is comprised of:
  41. ;
  42. ;    Commands:    IF  ELSE  FI  XIF  ZIF
  43. ;
  44. ;    Conditions:    IN(put)  n(register)  ~(negate)  ER(ror)
  45. ;
  46. ;--------------------------------------------------------------------
  47.     .Z80            ; All segments use Z80 opcodes
  48. origin    equ    0be00h        ; CCP base address
  49. base    equ    0        ; RAM base address
  50. msize    equ    59        ; Top of system memory
  51.  
  52. false    equ    0
  53. true    equ    not false
  54.  
  55. zccp    equ    origin        ; ZCPR3 Command Processor @ C000H
  56. ccps    equ    16        ; CCP size in records
  57. zbios    equ    zccp+800h+0e00h    ; BIOS start address
  58. bioss    equ    7168        ; Max allowable BIOS size
  59. bdoss    equ    3584        ; Max allowable BDOS size
  60.  
  61. dos    equ    0c600h        ; Address of the DOS
  62. doss    equ    28        ; DOS size in records
  63.  
  64. expath    equ    0fbf4h        ; External Path
  65. expaths    equ    5        ;  number of 2-byte path elements
  66.                 ;  (path size = expaths*2 + 1)
  67. z3whl    equ    0fbffh        ; Wheel Byte address
  68.  
  69. rcp    equ    0f000h        ; Resident Command Package
  70. rcps    equ    16        ;  number of 128-byte blocks
  71.  
  72. iop    equ    0000h        ; Redirectable I/O Package
  73. iops    equ    12        ;  number of 128-byte blocks
  74.  
  75. fcp    equ    0f800h        ; Flow Command Package
  76. fcps    equ    4        ;  number of 128-byte blocks
  77.  
  78. z3env    equ    0fe00h        ; Environment Descriptor
  79. z3envs    equ    2        ;  number of 128-byte blocks
  80.  
  81. shstk    equ    0fb00h        ; ZCPR3 Shell Stack address
  82. shstks    equ    4        ;  number of shell stack entries
  83. shsize    equ    32        ;  shell stack entry size
  84.                 ;  (stack size = shstks * shsize)
  85. z3msg    equ    0fb80h        ; ZCPR3 Message Buffer address
  86.  
  87. extfcb    equ    0fbd0h        ; ZCPR3 External File Control Block
  88.  
  89. z3ndir    equ    0fa00h        ; ZCPR3 Named Directory Data Area
  90. z3ndirs    equ    14        ;  number of 18-byte DIR Elements
  91.                 ;  (ndir size = z3ndirs*18 + 1)
  92.  
  93. cipoff    equ    0fah        ; CIP address offset from ENV start
  94. cpmoff    equ    0fdh        ; CPM address offset from ENV start
  95. cip    equ    0fc00h        ; Command Input Package
  96. cips    equ    3        ;  number of 128-byte blocks
  97. cipm    equ    0fd80h        ; Command Input Package MACROS
  98. cipms    equ    1        ;  number of 128-byte blocks
  99. maxmac    equ    6        ; Max number of macro entries
  100.  
  101. z3cl    equ    0ff00h        ; ZCPR3 Command Line Buffer address
  102. z3cls    equ    208        ;  command line buffer size
  103.  
  104. extstk    equ    0ffd0h        ; ZCPR3 External Stack address
  105.  
  106. meg    defl    4        ; Processor speed in mHz
  107. quiet    equ    false        ; True = Minimize system prompts
  108. duok    equ    true        ; True = OK to accept DU form
  109.  
  110. ;  End of ZCPR 3.3 System Segment Addresses
  111. ;-------------------------------------------------------------------
  112.