;    **	TITLE 	DOSPARM.ASM 02.42 sbw 12/14/82
	LST	NPRT
;
;	MASTER DOS PARAMETER TABLES
;
; 00.00 07/??/77 RLR
; 01.01 05/30/78 RLR
; 01.02 10/01/78 RLR
; 02.00 01/01/80 rlr
; 02.10 06/17/80 KRS
; 02.14 07/??/80 KRS
; 02.20 07/??/80 KRS
; 02.23 09/??/80 KRS
; 02.37 02/??/82 KRS
; 02.39 05/??/82 KRE
; 02.39 06/??/82 SBW to remove SYSTP and SYSNET equates
; 02.42 12/14/82 sbw Miscellaneous
;
; URREG-> USER CONTROL BLOCK
;
URHL	EQU	0	; REG'S - HL
URDE	EQU	2	;	  DE
URBC	EQU	4	;	  BC
URPSW	EQU	6	;	  AF
URSTK	EQU	8	;	  SP
URHLX	EQU	10	; ALT REG'S - HL	02.14
URDEX	EQU	12	;	      DE	02.14
URBCX	EQU	14	;	      BC	02.14
URPSWX	EQU	16	;	      AF	02.14
URIX	EQU	18	;	X REG		02.14
URIY	EQU	20	;	Y REG		02.14
URDEV	EQU	22	; MASTER DEVICE	
URDBF	EQU	23	; DISK BUFFER ADR
URDRB	EQU	25	; DIRECTORY BLOCK (1..64)
URSFB	EQU	26	; SEARCH FCB ADDRESS
URCHR	EQU	28	; INPUT CHAR BUFFER
URABT	EQU	29	; ABORT ADRRESS
URSKQ	EQU	31	; STACK SWITCH (0-SYS/FF-USER)
URPRC	EQU	32	; PROGRAM RETURN CODE
URTAB	EQU	33	; TAB COUNTER BYTE	02.20
URSOPT	EQU	34	; USER OPTION BYTE	02.20
URSBF1	EQU	35	; SYSTEM BUFFER PTR 1
URSBF2	EQU	37	; SYSTEM BUFFER PTR 2
URFCB	EQU	39	; CHAIN FCB (33 BYTES)
UCBLEN	EQU	URFCB+33
;
optxp	equ	80h	; Transparent user option		;02.42
opnecho	equ	40h	; No echo				;02.42
opderr	equ	10h	; Supress disk error message		;02.42
opncr	equ	08h	; Supress <cr> echo			;02.42
opesc	equ	04h	; <esc> is line terminator		;02.42
oprafw	equ	02h	; Read after write			;02.42
opprsw	equ	01h	; ^P active				;02.42
;
; CLKCB:   CLOCK CONTROL BLOCK
; YR	EQU	0
; MON	EQU	1
; DAY	EQU	2
; HOUR	EQU	3  	; 24 HOUR TIME
; MIN	EQU	4
; SEC	EQU	5
;
;  SYSTEM DISK TABLE -> MAX DISKS
;	MAX DISKS * CURRENT SDT ENTRY
;
SDTFB	EQU	0	; FLAG BITS (1)
SDTSB	EQU	1	; STATUS BITS  (1)
SDTUN	EQU	2	; UNIT NUMBER  (1)
SDTTK	EQU	3	; TRACK NUMBER (1)
SDTCSZ	EQU	4	; CLUSTER SIZE (1)
SDTDUB	EQU	5	; DUCB (UNIT CONTROL BLK) (2)
SDTMDR	EQU	7	; MASTER DIR START BLK (2)
SDTMLN	EQU	9	; MSTR DIR LENGTH (ENTRIES) (1)
SDTMCL	EQU	10	; MSTR DIR LENGTH (CLUSTERS)(1)
SDTDTY	EQU	11	; CURR DIR TYPE	 (1)
SDTNAM	EQU	12	; DISK VOLUME NAME (8)
SDTMAP	EQU	20	; ALLOCATION MAP PTR  <CLUSTRS*8> (2)
SDTPTR	EQU	22	; SPECIAL AREA POINTER	  (2)
SDTCPR	EQU	24	; CURR DIR PTR (2)
SDTNCL	EQU	26	; NUMBER OF CLUSTERS ON DISK (2)
;
SDTLEN	EQU	28
;
; DISK UNIT [CONTROL] BLOCK <-
;		CURRENT DUCB POINTER(CDUCB)
;
DUBSIZ	EQU	0	; MAXIMUM SECTORS (3)
DUBSUR	EQU	3	; BLOCKS PER SURFACE (2)
DUBTRK	EQU	5	; BLOCKS PER TRACK (1)
DUBSEC	EQU	6	; BLOCKS PER PHYSICAL SECTOR (1)
DUBITB	EQU	7	; INTERLEAVING TABLE
			; (0=NONE, -1=IBM) (2)
DUBSET	EQU	9	; @SET HEAD ROUTINE
DUBIO	EQU	11	; @IO ROUTINE
DUBSPC	EQU	13	; @SPECIAL FUNCTION ROUTINE
DUBSTK	EQU	15	; IF DUBSEC <>0 - SD TRK, SEC/EA 02.39
;
;	FILE CONTROL BLOCK
;
FCBFT	EQU	9	; FILE TYPE
FCBEX	EQU	12	; FILE EXTENT
FCBDE	EQU	14	; DIRECTORY ENTRY NUMBER
FCBRC	EQU	15	; RECORD COUNT
FCBDM	EQU	16	; DISK MAP
FCBNR	EQU	32	; NEXT RECORD
FCBRR	EQU	33	; RANDOM RECORD (CP/M 2.0)	 02.20
;
;  DIR BYTE 0 FLAGS IN BIG DIRECTORY
;
BIGFLG	EQU	02H	; FILE IS BIG FILE		 02.14
WHALF	EQU	04H	; WHICH DM HALF IS IN FCB	 02.14
BIGFIL	EQU	02H	; THIS ENTRY IS BIG FILE	 02.14
biglbl	equ	85h	; Big directory label			;02.42
archive	equ	04h	; Archive attribute			;02.42
;
atrp	equ	80h	; Permanent attribute			;02.42
atrw	equ	40h	; Write protect attribute		;02.42
atrr	equ	20h	; Read protect attribute		;02.42
atru	equ	10h	; User attribute			;02.42
atrs	equ	08h	; System attribute			;02.42
atra	equ	04h	; Archive attribute			;02.42
;
;  SDT.DIRTYP FLAGS
;
BIGDIR	EQU	01H	; THIS DIR IS BIG DIR
BIGONLY	EQU	02H	; THIS UNIT MUST HAVE A BIG DIR	 02.23
SUBHAS	EQU	04H	; HAS ACTIVE SUB		 02.37
SUBDIR	EQU	80H	; THIS IS A SUB-DIRECTORY
DBLDIR	EQU	40H	; THIS IS A DOUBLE-SIDED DISKETTE
LBLDIR	EQU	10H	; THIS DISK HAS A LABEL		 02.20
NETDIR	EQU	20H	; THIS IS A NET NODE		 02.35
;
;****** END OF DOSPARM ******
	LST	PRT
