Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
 
2
.LIST on
3
 
4
; P0OS
5
; page 0 (LDT var's) local var's
6
_FSTMP:	.SECTION page0, ref_only, offset bpath
7
FSTMP_START	.EQU	$
8
 
9
maxsec		.LWORD		; ata device max sector's
10
hidsec		.LWORD		; hidden sectors
11
totsec		.LWORD		; partition size in sector's
12
maxcnt		.DW		; max. cluster's count
13
first		.DW		; relative first data sector
14
 
15
totrsv		.EQU	first
16
bcbbnk		.EQU	maxsec
17
hcbsiz		.EQU	maxsec+2
18
hcbrem		.EQU	maxcnt
19
tbdrv		.EQU	maxsec
20
tbcls		.EQU	maxsec+2
21
tblba		.EQU	hidsec
22
tbhead		.EQU	hidsec+2
23
tbtrk		.EQU	totsec
24
tbptr		.EQU	totsec+2
25
tbdma		.EQU	maxcnt
26
fdopt		.EQU	maxsec
27
fdarg		.EQU	maxsec+1
28
fdlbl		.EQU	maxsec+2
29
 
30
clscnt		.DW		; cluster's count #
31
rsvsec		.DW		; reserved sector's
32
fatsiz		.DW		; FAT16 fat table size
33
rootsiz		.DW		; root directory size
34
rootent		.DW		; root dir. max. entries
35
clsent		.DW		; sub-diectory max. entries
36
root		.DW		; root dir start
37
fat1		.DW		; fat1 table start
38
fat2		.DW		; fat 2 table start
39
start		.DW		; first data sector
40
maxcls		.DW		; last usable cluster+1
41
xfatb		.DW		; x-mem fat table buffer
42
 
43
fdix		.EQU	xfatb	; floppy disk index DD/HD
44
media		.EQU	xfatb+1	; floppy disk media field
45
 
46
flba		.DW		; low 16 bit lba
47
freecnt		.DW		; free cluster's count
48
freecls		.DW		; first free cluster
49
 
50
remsec		.EQU	freecnt
51
 
52
pbrp		LP		; PBR pointer
53
clssiz		.DB		; cluster size
54
clsshf		.DB		; cluster shift
55
clsmod		.DB
56
xbnk		.DB		; x-mem bank
57
lunit		.DB		; unity letter
58
tp		LP		; fat cache pointer
59
fdfmt		.DB		; floppy format
60
pdev		.DB		; phisycal device
61
ldev		.DB		; logical device
62
ldtcur		.DB		; current LDT ptr
63
lflag		.DB		; flag load fat table
64
rtcsec		.DB		; seconds
65
rtcmin		.DB		; minutes
66
 
67
badcls		.EQU	rtcsec
68
 
69
rtchour		.DB		; hours
70
rtcday		.DB		; day of month
71
rtcmonth	.DB		; month
72
rtcyear		.DB		; year
73
ctime		.DW		; compact time
74
cdate		.DW
75
tlp		LP
76
fd2ix		.DB
77
 
78
nulptr		.EQU	fd2ix	; flag null ptr
79
 
80
rootbnk		.DB
81
 
82
getfmt		.EQU	rootbnk	; get format from floppy disk
83
 
84
fatbnk		.DB
85
clsbnk		.DB
86
sec100		.DB		; tenths of seconds for ctime (ms stamp)
87
 
88
FSTMP_SIZ	.EQU	($-FSTMP_START)
89
	.ENDS
90
.LIST off