Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
; LDT.INC
2
 
3
.IFNDEF		__LDT_INC__
4
__LDT_INC__	.SET	1
5
 
6
.LIST on
7
;---------------------------------------------------------------------------
8
; Logical Drive Table (LDT) -- page 0 offset's
9
;---------------------------------------------------------------------------
10
 
11
 STRUCT		LDT
12
ldt_fg1		.DB		; logical volume flag's
13
				; <7>: device ready (fdc drive or ata device)
14
				; <6>: if=1->HD/CF else->FD
15
				; <1:0>: phisycal device number
16
 
17
ldt_fg2		.DB		; <7>: valid volume (fat volume or cbm disk)
18
				; <6>: if=1->FAT else->CBM (FD only)
19
				; <5>: disk format checked
20
				; <1:0>: disk format (fdc only)
21
 
22
ldt_root	.DW		; lba of root dir
23
ldt_fat1	.DW		; lba of fat1 table
24
ldt_fat2	.DW		; lba of fat2 table
25
ldt_cls		.DW		; lba of first data cluster
26
ldt_max		.DW		; max usable cluster + 1
27
ldt_rent	.DW		; root dir. max. entries
28
ldt_cent	.DW		; max. entries in dir. cluster
29
ldt_eoc		.DW		; end of cluster chain marker
30
ldt_free	.DW		; count of free cluster's
31
ldt_nxt		.DW		; next free cluster
32
ldt_fsiz	.DW		; fat table size
33
 
34
ldt_csiz	.DB		; cluster size (1,2,4,8,16,32,64)
35
ldt_cshf	.DB		; cluster shift (0,1,2,3,4,5,6)
36
ldt_rsiz	.DB		; root dir. size (sector's)
37
ldt_mcls	.DB		; mask for clust. module: 00,01,03,07,0F,1F,3F
38
ldt_cdlp	.DW		; current working dir list pointer
39
ldt_cdcls	.DW		; current working dir start cluster
40
ldt_cdlvl	.DB		; current working dir level count
41
 
42
ldt_ptype	.DB
43
ldt_pstart	.LWORD
44
ldt_psize	.LWORD
45
 
46
ldt_fp		.EQU	ldt_pstart	; fat table buffer long pointer
47
ldt_fbuf	.EQU	ldt_pstart+3		; fat table: x-mem base bank/dma buffer
48
 
49
ldt_pbr		.EQU	ldt_psize		; long pointer to PBR cache buffer
50
ldt_fmt		.EQU	ldt_psize+3
51
 
52
 ESTRUCT	LDT
53
 
54
.ENDIF