mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
22 lines
562 B
C
22 lines
562 B
C
#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
|