Last change
on this file since 142 was 66, checked in by Tomi Tilli, 14 years ago |
Changes to Assembly Library:
- Added File Library functions for reading and writing more than 64kbytes.
|
File size:
892 bytes
|
Line | |
---|
1 | ; File name : File.inc
|
---|
2 | ; Project name : Assembly Library
|
---|
3 | ; Created date : 8.10.2010
|
---|
4 | ; Last update : 6.12.2010
|
---|
5 | ; Author : Tomi Tilli
|
---|
6 | ; Description : File library defines.
|
---|
7 | %ifndef FILE_INC
|
---|
8 | %define FILE_INC
|
---|
9 |
|
---|
10 | ; File access and sharing modes
|
---|
11 | struc FILE_ACCESS
|
---|
12 | .ReadOnly resb 1
|
---|
13 | .WriteOnly resb 1
|
---|
14 | .ReadAndWrite resb 1
|
---|
15 | endstruc
|
---|
16 |
|
---|
17 | ; Origin of file seek
|
---|
18 | struc SEEK_FROM
|
---|
19 | .startOfFile resb 1 ; 00h
|
---|
20 | .currentFilePosition resb 1 ; 01h
|
---|
21 | .endOfFile resb 1 ; 02h
|
---|
22 | endstruc
|
---|
23 |
|
---|
24 | ; File attribute flags
|
---|
25 | FLG_FILEATTR_READ_ONLY EQU (1<<0)
|
---|
26 | FLG_FILEATTR_HIDDEN EQU (1<<1)
|
---|
27 | FLG_FILEATTR_SYSTEM EQU (1<<2)
|
---|
28 | FLG_FILEATTR_VOLUME_LABEL EQU (1<<3)
|
---|
29 | FLG_FILEATTR_DIRECTORY EQU (1<<4)
|
---|
30 | FLG_FILEATTR_ARCHIVE EQU (1<<5)
|
---|
31 |
|
---|
32 |
|
---|
33 | ; Max number of bytes to read/write per DOS call when transferring DX:CX bytes
|
---|
34 | SPLIT_SIZE_FOR_LARGE_TRANSFERS EQU (32<<10)
|
---|
35 |
|
---|
36 |
|
---|
37 | %endif ; FILE_INC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.