home *** CD-ROM | disk | FTP | other *** search
- ; Z3BASE.LIB - ZCPR 3.3 System Segment Address Module
- ;--------------------------------------------------------------------
- ;
- ; Address Range Size Function
- ; ------------- ---- --------
- ;
- ; * 0 - FF 256 B Standard CP/M Buffers
- ; 100 - BDFF 48384 B Transient Program Area (TPA)
- ; *BE00 - C5FF 2048 B ZCPR 3.3 Command Processor (CCP)
- ; *C600 - D3FF 3584 B Z80DOS (BDOS)
- ; *D400 - EFFF 7168 B BIOS.SYS (BIOS)
- ; F000 - F7FF 2048 B Resident Command Package (RCP)
- ; F800 - F9FF 512 B Flow Command Package (FCP)
- ; FA00 - FAFF 256 B Memory-Based Named Directories (NDR)
- ; *FB00 - FB7F 128 B ZCPR3 Shell Stack (SHELL)
- ; *FB80 - FBCF 80 B ZCPR3 Message Buffers (MSG)
- ; *FBD0 - FBF3 36 B ZCPR3 External FCB (EFCB)
- ; *FBF4 - FBFE 11 B ZCPR3 External Path (PATH)
- ; FBFF 1 B Wheel Byte (WHL)
- ; FC00 - FD7F 384 B Command Input Package (CIP)
- ; FD80 - FDFF 128 B CIP Macros (CIPM)
- ; *FE00 - FEFF 256 B Environment Descriptor
- ; Bytes 00H - 7FH: Z3 Parameters (ENV)
- ; Bytes 80H - FFH: Z3TCAP (TCAP)
- ; *FF00 - FFCF 208 B Multiple Command Line Buffer (MCLB)
- ; *FFD0 - FFFF 48 B ZCPR3 External Stack (STACK)
- ;
- ; * - These segments are REQUIRED by ZCPR 3.3
- ;--------------------------------------------------------------------
- ;
- ; The ZCPR 3.3 (CCP) implementation has the following commands:
- ;
- ; GET JUMP LIST NOTE SAVE TYPE
- ;
- ; The Resident Command Package (RCP) has the following commands:
- ;
- ; H(elp) CLS DIR ERA P(eek) PROT REG REN SP(ace)
- ; TST TIME (Z33.RCP) or PORT (Z33B.RCP)
- ;
- ; The Flow Command Package (FCP) is comprised of:
- ;
- ; Commands: IF ELSE FI XIF ZIF
- ;
- ; Conditions: IN(put) n(register) ~(negate) ER(ror)
- ;
- ;--------------------------------------------------------------------
- .Z80 ; All segments use Z80 opcodes
- origin equ 0be00h ; CCP base address
- base equ 0 ; RAM base address
- msize equ 59 ; Top of system memory
-
- false equ 0
- true equ not false
-
- zccp equ origin ; ZCPR3 Command Processor @ C000H
- ccps equ 16 ; CCP size in records
- zbios equ zccp+800h+0e00h ; BIOS start address
- bioss equ 7168 ; Max allowable BIOS size
- bdoss equ 3584 ; Max allowable BDOS size
-
- dos equ 0c600h ; Address of the DOS
- doss equ 28 ; DOS size in records
-
- expath equ 0fbf4h ; External Path
- expaths equ 5 ; number of 2-byte path elements
- ; (path size = expaths*2 + 1)
- z3whl equ 0fbffh ; Wheel Byte address
-
- rcp equ 0f000h ; Resident Command Package
- rcps equ 16 ; number of 128-byte blocks
-
- iop equ 0000h ; Redirectable I/O Package
- iops equ 12 ; number of 128-byte blocks
-
- fcp equ 0f800h ; Flow Command Package
- fcps equ 4 ; number of 128-byte blocks
-
- z3env equ 0fe00h ; Environment Descriptor
- z3envs equ 2 ; number of 128-byte blocks
-
- shstk equ 0fb00h ; ZCPR3 Shell Stack address
- shstks equ 4 ; number of shell stack entries
- shsize equ 32 ; shell stack entry size
- ; (stack size = shstks * shsize)
- z3msg equ 0fb80h ; ZCPR3 Message Buffer address
-
- extfcb equ 0fbd0h ; ZCPR3 External File Control Block
-
- z3ndir equ 0fa00h ; ZCPR3 Named Directory Data Area
- z3ndirs equ 14 ; number of 18-byte DIR Elements
- ; (ndir size = z3ndirs*18 + 1)
-
- cipoff equ 0fah ; CIP address offset from ENV start
- cpmoff equ 0fdh ; CPM address offset from ENV start
- cip equ 0fc00h ; Command Input Package
- cips equ 3 ; number of 128-byte blocks
- cipm equ 0fd80h ; Command Input Package MACROS
- cipms equ 1 ; number of 128-byte blocks
- maxmac equ 6 ; Max number of macro entries
-
- z3cl equ 0ff00h ; ZCPR3 Command Line Buffer address
- z3cls equ 208 ; command line buffer size
-
- extstk equ 0ffd0h ; ZCPR3 External Stack address
-
- meg defl 4 ; Processor speed in mHz
- quiet equ false ; True = Minimize system prompts
- duok equ true ; True = OK to accept DU form
-
- ; End of ZCPR 3.3 System Segment Addresses
- ;-------------------------------------------------------------------