-
Notifications
You must be signed in to change notification settings - Fork 1
/
storage.asm
83 lines (63 loc) · 1.66 KB
/
storage.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;
; Slowdos Source Code
;
;
; $Id: storage.asm,v 1.3 2003/06/17 19:08:03 dom Exp $
; $Author: dom $
; $Date: 2003/06/17 19:08:03 $
;
; Memory storage that is used
MODULE storage
PUBLIC curdrv
PUBLIC ufia
PUBLIC chanel
PUBLIC temphd
PUBLIC rdflen
PUBLIC wrflen
PUBLIC page
PUBLIC namep3
PUBLIC pdname
PUBLIC curfat
PUBLIC flags
PUBLIC flags2
PUBLIC flags3
PUBLIC rotsta
PUBLIC rotlen
PUBLIC fileno
PUBLIC frepos
PUBLIC dirsec
PUBLIC dirsol
PUBLIC sdclus
PUBLIC filen
PUBLIC intafil
;From msload
curdrv:
ufia: defb 0 ;drive
chanel: defb 0 ;stream
defs 12,32 ;name - including '.'
defb 0 ;dir flags
defb 0 ;filetype
defw 0 ;file length
defw 0 ;load addy
defw 0 ;offset
temphd: defs 7,0
rdflen: defw 0,0 ; VARIABLE - reading file length
wrflen: defw 0,0 ; VARIABLE - writing file length
page: defb 0 ; VARIABLE
;Plus3 filename and header
namep3: defs 16,32 ; VARIABLE - +3 filename
defb 255
pdname: defs 12,0
curfat: defw 0 ; VARIABLE - current/last cluster of catalogue
flags: defb 0 ; VARIABLE
flags2: defb 0 ; VARIABLE
flags3: defb 0 ; VARIABLE
rotsta: defw 0 ; VARIABLE - start of root directory
rotlen: defw 0 ; VARIABLE - length of root directory
fileno: defb 0 ; VARIABLE - Position within directory
frepos: defb 0 ; VARIABLE - free position
dirsec: defw 0 ; VARIABLE - sector containing first free dir entry
dirsol: defw 0 ; VARIABLE, saved directory sector
sdclus: defw 0 ; VARIABLE, subdir starting cluster number
filen: defs 12,0 ; VARIABLE, contains file pattern
intafil: defs 20,32 ; VARIABLE - store for .TAP filenames