forked from MirrorRepos/RomWBW
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.8 KiB
125 lines
4.8 KiB
; B/P Bios System Z3 Definition File.
|
|
|
|
; This file is adapted from the basic Z3BASE.LIB configuration file used for
|
|
; most ZCPR33 systems. It has added the new definitions for the Resident
|
|
; User Space defined in B/P Bios descriptions.
|
|
;=========================================================================
|
|
;== NOTE: The Starting Address of the User Space marks the lower ==
|
|
;== base of memory and MUST be entered. B/P Bios Utilities use ==
|
|
;== this address to locate many portions of the operating system. ==
|
|
;=========================================================================
|
|
; To change your systems definition, first sketch out the memory map in the
|
|
; comment table, then set the equates to reflect the memory map, doing any
|
|
; required calculations for element sizes and required spaces. As an
|
|
; alternative, just leave this file alone and configure everything with
|
|
; the utilities provided.
|
|
|
|
; FFD0 - FFFF 48 Bytes ZCPR3 External Stack
|
|
; FF00 - FFCF 208 Bytes Multiple Command Line Buffer
|
|
; FE00 - FEFF 256 Bytes Environment Descriptor
|
|
; Bytes 00H-7FH: Z3 Parameters
|
|
; Bytes 80H-FFH: Z3 TCAP
|
|
; FDFF 1 Byte Wheel byte
|
|
; FDF4 - FDFE 11 Bytes Path (5 elements)
|
|
; FDD0 - FDF3 36 Bytes ZCPR3 External FCB
|
|
; FD80 - FDCF 80 Bytes ZCPR3 Message Buffers
|
|
; FD00 - FD7F 128 Bytes ZCPR3 Shell Stack
|
|
; FC00 - FCFF 256 Bytes Named Directory Buffer
|
|
; FA00 - FBFF 512 Bytes Flow Command Package
|
|
; F200 - F9FF 2.0 KBytes Resident Command Package
|
|
; EC00 - F1FF 1.5 KBytes IO Package
|
|
; E900 - EBFF .75 KBytes Resident User Space
|
|
|
|
; The remainder is for the Operating System. Exact sizes vary depending
|
|
; primarily on the Number and sizes of Hard Drive Partitions, but may be:
|
|
|
|
; D100 - EBFF 5.0 KBytes B/P BIOS (unbanked version)
|
|
; C300 - D0FF 3.5 KBytes ZSDOS 1.0 BDOS
|
|
; BB00 - C2FF 2 KBytes ZCPR 3.3 Command Processor
|
|
; 0100 - BAFF ~46 KBytes Transient Program Area
|
|
; 0000 - 00FF 256 Bytes Standard CP/M Buffers
|
|
;========================================================================
|
|
|
|
FALSE EQU 0
|
|
TRUE EQU NOT FALSE
|
|
|
|
YES EQU TRUE
|
|
NO EQU FALSE
|
|
|
|
; The External Stack is placed in the very top position in memory. It is
|
|
; mandatory for B/P Bios and ZCPR 3.3.
|
|
|
|
EXTSTK EQU 0FFD0H ; ZCPR3 External Stack
|
|
EXTSTKS EQU YES
|
|
|
|
; The Multiple Command Line Buffer is placed in the Top Page of Memory to
|
|
; place it above the Environment. It is mandatory for ZCPR 3.3.
|
|
|
|
Z3CL EQU 0FF00H ; ZCPR3 Command Line Buffer
|
|
Z3CLS EQU 208-5 ; Size of Command Line Buffer-5
|
|
|
|
; The ZCPR3 External Environment Descriptor is mandatory B/P Bios & ZCPR 3.3.
|
|
; The Environment Descriptor MUST begin on an even Page Boundary (xx00H).
|
|
|
|
Z3ENV EQU 0FE00H ; Environment Descriptors
|
|
Z3ENVS EQU 2 ; Size of Env Descriptor in 128-Byte Blks
|
|
|
|
; The ZCPR3 Wheel Byte is mandatory for ZCPR 3.3.
|
|
|
|
Z3WHL EQU 0FDFFH ; Wheel Byte Address
|
|
Z3WHLS EQU YES
|
|
|
|
; The Path is mandatory for ZCPR 3.3.
|
|
|
|
EXPATH EQU 0FDF4H ; External Path starting Address
|
|
EXPATHS EQU 5 ; (Path Size = EXPATHS*2 + 1 = 11 bytes)
|
|
; This defines 5 2-byte Path Elements
|
|
|
|
; The ZCPR3 External FCB is mandatory for ZCPR 3.3.
|
|
|
|
EXTFCB EQU 0FDD0H ; 36-Byte ZCPR3 External FCB
|
|
EXTFCBS EQU YES
|
|
|
|
; The ZCPR3 Message Buffers are mandatory for ZCPR 3.3.
|
|
|
|
Z3MSG EQU 0FD80H ; 80-Byte ZCPR3 Message Buffer
|
|
Z3MSGS EQU YES
|
|
|
|
; Shell Stack definition. Set SHSTKS to 0 to eliminate Shell Stack
|
|
|
|
SHSTK EQU 0FD00H ; Shell Stack Starting Address
|
|
SHSTKS EQU 4 ; Number of SHSIZE-Byte Shell Stack entries
|
|
SHSIZE EQU 32 ; (Stack Size = SHSTKS * SHSIZE = 128 Bytes)
|
|
|
|
; ZCPR3 Named Directory Buffer definition. Set Z3NDIRS to 0 to eliminate
|
|
; the named directory buffer.
|
|
|
|
Z3NDIR EQU 0FC00H ; Start of Named Directory Buffer
|
|
Z3NDIRS EQU 14 ; Number of Named Directory Elements
|
|
; (NDIR Size = Z3NDIRS * 18 + 1 = 253 Bytes)
|
|
|
|
; Flow Command Package definition. Set FCPS to 0 to eliminate FCP
|
|
|
|
FCP EQU 0FA00H ; Start of Flow Command Package
|
|
FCPS EQU 4 ; (FCP Size = 128 * FCPS = 512 Bytes)
|
|
|
|
; Resident Command Processor Definition. Set RCPS to 0 to eliminate RCP
|
|
|
|
RCP EQU 0F200H ; Start of Resident Command Processor
|
|
RCPS EQU 16 ; (RCP Size = 128 * RCPS = 2 kBytes)
|
|
|
|
; IO Package definition. Set IOPS to 0 to eliminate IOP
|
|
|
|
IOP EQU 0EC00H ; Start of IO Package
|
|
IOPS DEFL 12 ; (IOP Size = 128 * IOPS = 1.5 kBytes)
|
|
|
|
;=========================================================================
|
|
; Resident User Space Definition. Set USPCS to 0 to eliminate USPC.
|
|
; The USPC Value marks the Lower Limit of Reserved Common High Memory and
|
|
; MUST BE PRESENT!
|
|
|
|
USPC EQU 0E900H ; Start of Resident User Space (MANDATORY)
|
|
USPCS EQU 6 ; (USPC Size = 128 * USPCS = 0.75 kBytes)
|
|
|
|
;--- End of Z3BASE.LIB ---
|
|
|