mirror of https://github.com/wwarthen/RomWBW.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
562 B
21 lines
562 B
#ifndef CPMDIR_H
|
|
#define CPMDIR_H
|
|
|
|
struct PhysDirectoryEntry
|
|
{
|
|
char status;
|
|
char name[8];
|
|
char ext[3];
|
|
char extnol;
|
|
char lrc;
|
|
char extnoh;
|
|
char blkcnt;
|
|
char pointers[16];
|
|
};
|
|
|
|
#define ISFILECHAR(notFirst,c) (((notFirst) || (c)!=' ') && (c)>=' ' && !((c)&~0x7f) && (c)!='<' && (c)!='>' && (c)!='.' && (c)!=',' && (c)!=';' && (c)!=':' && (c)!='=' && (c)!='?' && (c)!='*' && (c)!= '[' && (c)!=']')
|
|
#define EXTENT(low,high) (((low)&0x1f)|(((high)&0x3f)<<5))
|
|
#define EXTENTL(extent) ((extent)&0x1f)
|
|
#define EXTENTH(extent) (((extent>>5))&0x3f)
|
|
|
|
#endif
|
|
|