-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecords.equ
239 lines (203 loc) · 3.67 KB
/
records.equ
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
;
; n.b. -- __sizeof only works for the record. It does not
; work when actually instantiated. MPW sucks for some reason.
; perhaps it blindly adds the current * to all relative equates....
;
macro
&n begin_struct
&n record 0
__begin equ *
mend
macro
&n end_struct
&n
__end equ *
__sizeof equ __end - __begin
endr
mend
GSString255 begin_struct
length DS.W 1 ; Word - Number of Chars in text field
text DS.B 255 ; char[255] -
end_struct
GSString32 begin_struct
length DS.W 1 ; Word - Number of characters in text field
text DS.B 32 ; char[32] -
end_struct
ResultBuf255 begin_struct
bufSize DS.W 1
bufString DS GSString255
end_struct
ResultBuf32 begin_struct
bufSize DS.W 1
bufString DS GSString32
end_struct
TimeRec begin_struct
second DS.B 1
minute DS.B 1
hour DS.B 1
year DS.B 1
day DS.B 1
month DS.B 1
extra DS.B 1
weekDay DS.B 1
end_struct
DirEntryRecGS begin_struct
pCount DS.W 1
refNum DS.W 1
flags DS.W 1
base DS.W 1
displacement DS.W 1
name DS.L 1
entryNum DS.W 1
fileType DS.W 1
eof DS.L 1
blockCount DS.L 1
createDateTime DS TimeRec
modDateTime DS TimeRec
access DS.W 1
auxType DS.L 1
fileSysID DS.W 1
optionList DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
end_struct
DirEntryRec begin_struct
refNum DS.B 2
flags DS.B 2
base DS.B 2
displacement DS.B 2
nameBuffer DS.B 4
entryNum DS.B 2
fileType DS.B 2
endOfFile DS.B 4
blockCount DS.B 4
createTime DS TimeRec
modTime DS TimeRec
access DS.B 2
auxType DS.B 4
fileSysID DS.B 2
end_struct
FileInfoRecGS begin_struct
pCount DS.W 1
pathname DS.L 1
access DS.W 1
fileType DS.W 1
auxType DS.L 1
storageType DS.W 1
createDateTime DS TimeRec
modDateTime DS TimeRec
optionList DS.L 1
eof DS.L 1
blocksUsed DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
end_struct
FileRec begin_struct
pathname DS.B 4
fAccess DS.B 2
fileType DS.B 2
auxType DS.B 4
storageType DS.B 2
createDate DS.B 2
createTime DS.B 2
modDate DS.B 2
modTime DS.B 2
blocksUsed DS.B 4
end_struct
OpenRecGS begin_struct
pCount DS.W 1
refNum DS.W 1
pathname DS.L 1
requestAccess DS.W 1
resourceNumber DS.W 1
access DS.W 1
fileType DS.W 1
auxType DS.L 1
storageType DS.W 1
createDateTime DS TimeRec
modDateTime DS TimeRec
optionList DS.L 1
eof DS.L 1
blocksUsed DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
end_struct
OpenRec begin_struct
openRefNum DS.B 2
openPathname DS.B 4
ioBuffer DS.B 4
end_struct
VolumeRecGS begin_struct
pCount DS.W 1
devName DS.L 1
volName DS.L 1
totalBlocks DS.L 1
freeBlocks DS.L 1
fileSysID DS.W 1
blockSize DS.W 1
characteristics ds.w 1
deviceID ds.w 1
end_struct
VolumeRec begin_struct
deviceName DS.B 4
volName DS.B 4
totalBlocks DS.B 4
freeBlocks DS.B 4
fileSysID DS.B 2
end_struct
JudgeNameRecGS begin_struct
pCount ds.w 1
fileSysID ds.w 1
nameType ds.w 1
syntax ds.l 1
maxLen ds.w 1
name ds.l 1
nameFlags ds.w 1
end_struct
PositionRecGS begin_struct
pCount DS.W 1
refNum DS.W 1
position DS.L 1
end_struct
MarkRec begin_struct
markRefNum DS.B 2
position DS.B 4
end_struct
EOFRecGS begin_struct
pCount DS.W 1
refNum DS.W 1
eof DS.L 1
end_struct
EOFRec begin_struct
eofRefNum DS.B 2
eofPosition DS.B 4
end_struct
IORecGS begin_struct
pCount DS.W 1
refNum DS.W 1
dataBuffer DS.L 1 ; Pointer
requestCount DS.L 1
transferCount DS.L 1
cachePriority DS.W 1
end_struct
FileIORec begin_struct
fileRefNum DS.B 2
dataBuffer DS.B 4
requestCount DS.B 4
transferCount DS.B 4
end_struct
SetPositionRecGS begin_struct
pCount DS.W 1
refNum DS.W 1
base DS.W 1
displacement DS.L 1
end_struct
DevNumRecGS begin_struct
pCount DS.W 1
devName DS.L 1
devNum DS.W 1
end_struct
DevNumRec begin_struct
devName DS.B 4
devNum DS.B 2
end_struct